• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

rotation action as a result of an attribute value

  • Thread starter Thread starter Ale_23
  • Start date Start date

Ale_23

Guest
Good morning to all, I would need to apply a rotation action in a block as a result of a value I will set in an attribute.
I ask for help as I have been banging my head for days, without any solution

thanks in advance to all
 
with the dynamic block you can set the rotation according to a parameter, you can also display that parameter in an attribute.
How come this particular need?
 
with the dynamic block you can set the rotation according to a parameter, you can also display that parameter in an attribute.
How come this particular need?
thank you but my request is inverse to what you said. I would like to set a rotation based on the parameter written in the attribute. I don't know if I can make the idea.'
this request comes from the fact that I want to automate some processing and then streamline the timing of realization of the synoptics and picture fronts, and also have clearer graphic display for our cablators.

I attach the file to the form.
I explain...where we have rotation trimmers (x10; x1) I would like to apply a rotation based on an attribute "I still have to insert", which will be visible only in the properties of the block.

Is it a little too much demand? ? ? 😂🤣
thanks to who will answer
 

Attachments

I explain...where we have rotation trimmers (x10; x1) I would like to apply a rotation based on an attribute "I still have to insert", which will be visible only in the properties of the block.
Sorry, but I still don't understand. set a parameter or attribute leads to the same result, both are visible only in the properties of the block. the parameters you can manage them according to what you need, the attributes no. Set a parameter through the attribute involves using a macro, feasible but I do not see the practical aspect.
try explaining step by step what you want to get.
by macro, consider that any block parameter can handle it from excel, type, set x10 and reset x1, to make the idea.
 
try explaining step by step what you want to get.
by macro, consider that any block parameter can handle it from excel, type, set x10 and reset x1, to make the idea.
I realize that the request is quite complex, but I want to try...,

I try to explain myself better.
starting from the base module (Annex "capture 1"), the block has no numbering, I have to go to give a numbering to the block.
therefore inserting in the attributes "x1" the units, the dedicated trimmer must make a rotation up to the value I have in the attribute (see "capture with unit", being the value 1 must make a rotation of 36°)
idem also inserting in the attribute "x10" the tens (see "capture with tens and units") in this case the value "x10" is 4 therefore the trimmer must rotate of 144° while the value of "x1" is 7 therefore must rotate of 252°.
I currently do it manually by rotating the trimmers with the grips, but my request is to automate everything.
the top would insert the value in full and not divided by tens and units, but this I think is only succeeding with a macro...

Thanks again
 

Attachments

  • cattura 1.webp
    cattura 1.webp
    46.2 KB · Views: 18
  • cattura con unità.webp
    cattura con unità.webp
    43.5 KB · Views: 15
  • cattura decine e unità.webp
    cattura decine e unità.webp
    49.5 KB · Views: 15
I agree with those who have already said that they serve a "paio" of lines of code to change the parameter via attribute.... cmq as already said there are other alternatives, one of them is to assign a formula to a hidden attribute to calculate the position 0-9 that is updated to the rescue of the file.

I do not consider it an optimal solution, but I thought to add it only for information.
 

Attachments

thank you reddish,
I have tried but not being very practical, I have not made it.
to say however that you have actually put a hidden attribute that takes the value from the x10 parameter (dynamic lock); but it seems to me that ale_23 asked for the reverse passage.
What confirms me is not possible?
 
Exactly, I confirm when I wrote in my previous post.

If you have any other doubts, ask:-)

in your opinion it would have been better to write a few lines of code to help @alex_123 ?
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top