- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to return a list of parameters (specifically point parameters, and their locations) when I select a block. and while I understand vla-vlax- functions are faster, I am trying to accomplish this in AutoLISP without them.
Can anyone describe or provide some code as to how I can accomplish this? I'm not an expert at managing DXF codes or searching dictionaries/Xrecords/tabels yet, but I do feel pretty competent if pointed in the right direction.
Example:
I have a block with a triangle. And within that block are point parameters with X / Y locations...
...I would like to CHECK if this block has point parameters THEN get their locations if so. All without help of vla-vlax- functions.
Attached is a sample dwg.
...partial code:
(defun c:BGET ( / blkEnt blkName e) ;get block (setq blkEnt (car (entsel "\nSelect Block: "))) ;(dumpallproperties blkEnt) ;store block name (setq blkName (getpropertyvalue blkEnt "BlockTableRecord/Name")) (setq e (tblobjname "BLOCK" blkName)) ;;;; get list of parameters in block (princ) );defun
Best,
Solved! Go to Solution.