Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I found some code that will allow me to insert a block without using the "(command "insert".....) method because that caused the program to crash on some computers.
(vla-InsertBlock (vla-get-modelspace
(vla-get-activedocument
(vlax-get-acad-object)))
(vlax-3d-point overallHorUnitDimLoc) "Note_Symbol" 1 1 1 0 )
The problem is, the block has an attribute but I don't know how to add the attribute to the vla-InsertBlock command (if it's even possible).
Can someone show me how to do this?
The command I used to use is:
(command "insert" "Note_Symbol" overallHorUnitDimLoc "1" "1" "0" "4") where the "4" was the attribute value.
Thanks,
Mark
Solved! Go to Solution.