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)
have you tried acedCmd() or sendStringToExecute to pump the command instructions to the commandline?
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?
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register