TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: CADwiesel on September 17, 2018, 09:08:20 AM

Title: combine property and expression in Fields
Post by: CADwiesel on September 17, 2018, 09:08:20 AM
I like to combine the xScaleFaktor of an Block with an MText, so that i can multiplicate the textvalue, which is an int/real with this scalefaktor.
%<\\AcObjProp Object... %<\\AcExpr ...
I like to put an MText next to an Insert which shows me the total lenght and width of this insert. so when the Text is "78" and the scaleFaktorx is changet to 2 the Text should change to "156"
May there are some suggestions.
Title: Re: combine property and expression in Fields
Post by: kpblc on September 17, 2018, 09:15:44 AM
Do you mean something like this?
Title: Re: combine property and expression in Fields
Post by: CADwiesel on September 17, 2018, 09:37:42 AM
no, not this kind.
 i like to combine an text value with this scale faktor. if the text is 55 and i scale the insert by 2 the text should change to 110
Title: Re: combine property and expression in Fields
Post by: kpblc on September 17, 2018, 09:39:45 AM
Try to change scale factors to my block, then regenerate drawing - and you'll see changes to mtext.
Or I can't understand what do you want to get.
Title: Re: combine property and expression in Fields
Post by: CADwiesel on September 17, 2018, 10:12:52 AM
sorry, now i got it.  :idea:
That's exactly what i need.

Thanks a lot