- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a drawing with several dynamic blocks in it.
The dwg file must be read into another program that is only suitable for static blocks.
So I need a lisp that inserts static blocks based on data in the dynamic blocks. An example drawing has been added to the appendix.
The static block must inherit the following data (attributes) from the dynamic block:
1 blockname = "Ultimo_ID-Tappunt" (visibilitystate dynamic block = Tappunt) at wich the attribute value (TAG: LEGIONELLA) is composed: ("Tagvalue BOUWDEEL" "." "T" "Tagvalue NUMMER_TAPPUNT")
or
2 blockname = "Ultimo_ID-Keerklep" (visibilitystate dynamic block = Keerklep) at wich the attribute value (TAG: LEGIONELLA) is composed: ("Tagvalue BOUWDEEL" "." "K" "Tagvalue NUMMER_KEERKLEP")
The static blocks must be inserted with the same coordinates of the dynamicblocks.
I had a work arround wich was based on the following:
(command "_-INSERT" "Ultimo_ID-Tappunt" "61656, -12576" 1 1 0 "A00.T001" )
(command "_-INSERT" "Ultimo_ID-Keerklep" "50656, -45576" 1 1 0 "A00.K002" )
but somehow this code doesn't work anymore (when pasting on the commandline).
Thanks in advance
Solved! Go to Solution.