.NET

Reply
Contributor
rpearsall
Posts: 14
Registered: ‎05-16-2012
Message 1 of 4 (733 Views)

Update Dynamic Block Visibility States and Values Using VB.NET

733 Views, 3 Replies
09-21-2012 04:17 PM

Hi,

 

I want to be able to update a dynamic block with data from our SQL Server database using a VB.NET program.

 

The dynamic block is configured to show office locations and has the associated office addresses for each office location embedded within the block.  However, over time, offices close, new offices are added, addresses change, and so on.  Plus, we have a dynamic block in each sheet size for several template types.  So, updating them remotely would be a huge advantage.  I'd like to just click a button, and know that the offices in the blocks were up to date and accurate.

 

Currently, I can use VLISP and the DBX technology to open each file and change the addresses.  But, I cannot figure out how to change the visibility state (office name) in the prompt list.  Anyhow, I want to drive the changes from a VB external application rather than having to open AutoCAD and run a LISP routine.  So...

 

Does anyone know how to modify the following properties of a dynamic block using VB.NET?

 

1. The visibility states prompt list. (add, delete, modify)

2. The associated values. (add, delete, modify)

 

Thanks,

 

Randy

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 2 of 4 (690 Views)

Re: Update Dynamic Block Visibility States and Values Using VB.NET

09-24-2012 04:18 PM in reply to: rpearsall

have you tried acedCmd() or sendStringToExecute to pump the command instructions to the commandline?





Fenton Webb

Developer Technical Services

Autodesk Developer Network


Contributor
rpearsall
Posts: 14
Registered: ‎05-16-2012
Message 3 of 4 (666 Views)

Re: Update Dynamic Block Visibility States and Values Using VB.NET

09-25-2012 07:04 AM in reply to: fenton.webb

No.  I am not familiar with those commands.  I tried executing them on the command line and in the VLIDE editor.  Neither worked.  Apropos does not recognize them.  What library do the belong to?  Are they instantiated through a referenced DLL in VB?

 

Randy

ADN Support Specialist
Balaji_Ram
Posts: 714
Registered: ‎03-21-2011
Message 4 of 4 (605 Views)

Re: Update Dynamic Block Visibility States and Values Using VB.NET

10-05-2012 08:52 AM in reply to: rpearsall

Sorry for the delay in getting back to you.

 

My colleague, Fenton Webb is out-of-office for this week.

 

Regarding your query :

 

The dynamic blocks is one area which has very limited API access.The COM API is even more restrictive in this area.

 Unfortunately, it does not seem possible to do what you want through API.



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.