TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: HasanCAD on December 10, 2019, 08:39:52 AM
-
I am wondering is it possible to convert a field to a string to use in Entmakex
I extracted the scale using
(setq fldexp
(strcat "Scale : " "%<\\AcObjProp Object(%<\\_ObjId " (itoa objid
) " >%).StandardScale2 \\f \"%en0\">%"))
Thanks in advance
-
Have you see this? http://www.lee-mac.com/quickfield.html
-
I am wondering is it possible to convert a field to a string to use in Entmakex
I would advise against using entmake(x) to create a field as it requires a not insignificant amount of code (http://www.theswamp.org/index.php?topic=20446) to create the associated extensionary dictionaries which underpin the field functionality; conversely, a simple (vla-put-textstring <obj> <field expression>) using ActiveX will create such dictionaries for you automatically.
-
I am trying to modify LEE lisp http://www.lee-mac.com/vpoutline.html (Thanks LEE)
to add sheet number and scale of the viewport but I the result like attached
Due to the viewport in a layout and the text in model
So What comes in mind to convert the field to string and I am asking for thant.
-
When close the file and open again it works
Thanks for all
-
Using VL you can set the viewport scale
(vla-put-CustomScale viewport yourscale)
Then use zoom c scale
-
When close the file and open again it works
Thanks for all
You might check your FIELDEVAL setting too.
-
When close the file and open again it works
Thanks for all
Perhaps incorporate a call to the command UPDATEFIELD and select the previously created text?