- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Also, I forgot to mention that the AutoCADBlockDefinition object, which is what the AutoCADBlock object is based on, also has a method called "GetPromptTags". With that you can get the list of 'Tags' and 'Prompts' from the block, without the Values. And those Tags & Prompts are also both an array of String.
Whichever process you may use in your attempt to write new values to these, you pretty much need to know what specific order they are in when retrieved by code, because when you go to write the values, they are just put into an Array. And they need to be put into that array in the same order as the Tags/Prompts are listed in their arrays, so that they correspond to the right ones. What little I've messed with this process in the past, I do remember it not being a fun process. This type of automation may only pay off if you have many drawings in which these tags & prompts are done exactly the same way and you plan to provide the same exact values each time.
Also...I believe that the Array objects you create when using the Set method need to be the correct size. I'm pretty sure they need to be the same size (number of Items) as there are Tags/Prompts, so that there is one Item for each entry. I'm pretty sure that you don't need to supply Values for each Item, but there needs to be a position in the Arrays for each item in the list.
Wesley Crihfield
(Not an Autodesk Employee)