Message 1 of 12
AutoCAD Newbie - AcadBlockReference vs AcadBlock vs etc...
Not applicable
08-14-2008
06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone
I was hoping someone could shed some light for me on what exactly constitutes the various Acad objects... for instance, what is an AcadBlock vs an AcadBlockReference vs etc?
I'm trying to read the attributes off of a block I inserted using this code
'Process EACH AutoCAD Block INCLUDING ModelSpace/PaperSpace
For Each AutoCAD_Block As AcadBlock In AutoCAD_CurrentDwg_Blocks
Try
'Process each REFERENCED AutoCAD Block
For Each AutoCAD_Block_Reference As AcadBlockReference In AutoCAD_Block
Dim strAutoCAD_Block_ReferenceAttributeValue As String = ""
'Console.WriteLine(AutoCAD_Block.Name)
'Console.WriteLine(AutoCAD_Block_Reference.Name)
If (AutoCAD_Block_Reference.HasAttributes) Then
but a block I know has attributes isn't an AcadBlockReference... how do I handle this?
Many thanks!
-Justin
I was hoping someone could shed some light for me on what exactly constitutes the various Acad objects... for instance, what is an AcadBlock vs an AcadBlockReference vs etc?
I'm trying to read the attributes off of a block I inserted using this code
'Process EACH AutoCAD Block INCLUDING ModelSpace/PaperSpace
For Each AutoCAD_Block As AcadBlock In AutoCAD_CurrentDwg_Blocks
Try
'Process each REFERENCED AutoCAD Block
For Each AutoCAD_Block_Reference As AcadBlockReference In AutoCAD_Block
Dim strAutoCAD_Block_ReferenceAttributeValue As String = ""
'Console.WriteLine(AutoCAD_Block.Name)
'Console.WriteLine(AutoCAD_Block_Reference.Name)
If (AutoCAD_Block_Reference.HasAttributes) Then
but a block I know has attributes isn't an AcadBlockReference... how do I handle this?
Many thanks!
-Justin