.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Return an AssocVariable By Name

2 REPLIES 2
Reply
Message 1 of 3
BellwetherBill
566 Views, 2 Replies

Return an AssocVariable By Name

Is there a way to get an AssocVarible by specifying the name of the variable rather than iterating through all the Actions returned by the AssocNetwork.GetActions property?

2 REPLIES 2
Message 2 of 3

So let me rephrase my question. I am trying to figure out a way to access AssocVariables within blocks along with the top level of the ACAD_ASSOCNETWORK without selecting the entities on screen.

 

I can see the AcDbAssocNetwork objects that I want in the namedobjects dictionary using the ArxDebug tool and I can get to the AssocVariables but using the AssocNetwork.GetInstancesFromObject(Symbolutil(db),true,true,"") only seams to give me access to the top level AssocVariables and not the variables associated with blocks and nested inside AssocArrays.

 

Does anyone have any ideas?

Message 3 of 3

I have attached some test code as a text file so it's easier to read. I'm not sure if the ultimate implementation will work the way I want but this is what I have so far.

 

I would appreciate any feedback.

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost