Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
I'm trying to create a field in an attribute that will take the value of a Rotation Parameter and subtract 180 from it, multiplying it by (-1) if the value is greater than 180. This way I can get negative angle values.
I thought this might work
$(if, $(>, Angle1,180), ((Angle1-180)*-1)),Angle1)
but no luck. Is this possible?
$(if,$(>=,$(getvar,Rotation),180),$(*,-1,$(-,$(getvar,Rotation),180)),$(-,$(getvar,Rotation),180))
Maybe this will help
No, you cannot use (getvar) for this. Looks like an AI-generated response...
It is not possible to use conditional expressions but you can trick it by using a "magic" math expression in the field. See the tip https://www.cadforum.cz/en/if-statement-in-autocad-text-fields-and-attributes-tip14215 to get something like that:
Vladimir Michl, www.arkance.world - www.cadforum.cz
Can't find what you're looking for? Ask the community or share your knowledge.