Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retrieve Info to create Field a Leader

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Julio_Soto
220 Views, 3 Replies

Retrieve Info to create Field a Leader

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. 

Julio_Soto_0-1712181766755.png

 

HOwever when I inspect the block I only see this

Julio_Soto_2-1712181866582.png

 

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?

 

 

3 REPLIES 3
Message 2 of 4
Sea-Haven
in reply to: Julio_Soto

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.

Message 3 of 4
Julio_Soto
in reply to: Julio_Soto

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 #"

https://www.lee-mac.com/dynamicblockfunctions.html

Message 4 of 4
Julio_Soto
in reply to: Julio_Soto

I found the solution in AUGI forums. Man, it would've taken forever to figure this one out. It was very helpful

 

https://forums.augi.com/showthread.php?117056-Create-Field-to-DB-Param-Pragramatically&p=1356168#pos...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report