Gavin.Ostlund
2004-10-20, 06:52 PM
I'm attempting to write an app using API calls to automatically grab the information in the "Title Attribute" block, but am encountering some difficulties. I've gotten to the point where I'm able to extract the text fields from the block, but am not able to get the data that should be contained in those fields. I follow the following process:
Open AutoCad & Drawing
Iterate through $drawing->Blocks until I find the block that has the words 'Title Attribute' in it
Iterate through each $block->Item() of the appropriate block
Each of the items in $block->Item() should are an 'ACADEntity' and I'm able to get from them attributes like 'ObjectName', 'TextString', 'TagString' and so on. The problem is that none of the *String properties contain the information that I would anticipate that they should have in it, except of course for the 'PromptString' which contains the prompt label that appears beside the text box in the actual Edit Attributes window.
I'm at a bit of a loss as to how to proceed, I thought I was looking at the data the right way, but it doesn't appear to be so. If anyone has any suggestions or solutions, it would be most appreciated.
Open AutoCad & Drawing
Iterate through $drawing->Blocks until I find the block that has the words 'Title Attribute' in it
Iterate through each $block->Item() of the appropriate block
Each of the items in $block->Item() should are an 'ACADEntity' and I'm able to get from them attributes like 'ObjectName', 'TextString', 'TagString' and so on. The problem is that none of the *String properties contain the information that I would anticipate that they should have in it, except of course for the 'PromptString' which contains the prompt label that appears beside the text box in the actual Edit Attributes window.
I'm at a bit of a loss as to how to proceed, I thought I was looking at the data the right way, but it doesn't appear to be so. If anyone has any suggestions or solutions, it would be most appreciated.