.NET

.NET

Reply
Contributor
14 Posts
0 Kudos
Registered: ‎05-16-2012
Post 1 of 4

Update Dynamic Block Visibility States and Values Using VB.NET

785 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
352 Posts
27 Kudos
Registered: ‎07-24-2007
Post 2 of 4

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
14 Posts
0 Kudos
Registered: ‎05-16-2012
Post 3 of 4

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
761 Posts
100 Kudos
Registered: ‎03-21-2011
Post 4 of 4

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
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!