(setq blockobj (vlax-ename->vla-object (car (entsel))))
Objekt wählen:
#<VLA-OBJECT IAcadBlockReference 00000000312d1c38>
(setq blockobj (cdr (assoc -2 (tblsearch "block" selBlock)))) ; -> <Objektname: 7ffffb0a3c0>
(setq blockobj (vlax-ename->vla-object blockobj)) ; -> #<VLA-OBJECT IAcadLine 0000000031720308>
I want to create a function which
1) selects a block-definition by its name (tblsearch?, tblobjname?)
2) analyse the visibility-parameters and values (see Lee Macs code http://www.lee-mac.com/dynamicblockfunctions.html) and display them
3) insert the block
4) modify its visibility
You may find this thread helpful:Yes, I found this posting before. It brought me to other links and infos, and this is why I believe that some of my steps mentioned above are "clear". But the challenge is:
http://www.theswamp.org/index.php?topic=45905.0
The function provides an interface through which a user may insert a dynamic block whose visibility state is already set to a predetermined value:Before I can select a predetermined value I have to found which are allowed.
I assume this topic is related to:Also "yes". In OpenDCL I try to find the "preview", but some dyn-props are already discussed here. This is why I started the thread here.
http://www.opendcl.com/forum/index.php?topic=2199.0
You may find this thread helpful:Yes, I found this posting before. It brought me to other links and infos, and this is why I believe that some of my steps mentioned above are "clear". But the challenge is:
http://www.theswamp.org/index.php?topic=45905.0Quote from: Lee Mac in the linked threadThe function provides an interface through which a user may insert a dynamic block whose visibility state is already set to a predetermined value:Before I can select a predetermined value I have to found which are allowed.