I want to create a leader that is linked to information about a block. So it looks like I need to get this ObjID information for the specific block.
HOwever when I inspect the block I only see this
This does not look like the info I need.
Next I need the info the a specific lookup parameter. In this block the parameter name is "Length" but it shows up as "Parameter(68)" when I manually create a field. I don't think I can guarantee that this parameter is #68 every time. I don't even know what that's base on because there are not 68 parameters in this block. How can I get that parameter number?
Solved! Go to Solution.
Solved by Julio_Soto. Go to Solution.
Solved by Sea-Haven. Go to Solution.
Ok the object id example 1st.
(setq obj (vlax-ename->vla-object (car (entsel "\nPick pline"))))
(setq id (VLAX-INVOKE-METHOD (VLA-GET-UTILITY (VLA-GET-ACTIVEDOCUMENT (VLAX-GET-ACAD-OBJECT))) 'GETOBJECTIDSTRING OBJ :VLAX-FALSE))
Not sure what object your picking is it an attribute ? If so use of Nentsel may be the way to go.
that worked. now I just need a way to get the parameter #.
I've read through LeeMacs Dynamic Block functions, but those return the value of a named parameter. I don't in those functions anything related to getting a "Parameter #"
I found the solution in AUGI forums. Man, it would've taken forever to figure this one out. It was very helpful
Can't find what you're looking for? Ask the community or share your knowledge.