I use a block entity that contains a BlockPropertiesTable (not a LookupTable) with dimension constraints and user parameters. I managed to find sample code on how to get the current value of these parameters (
AssocNetwork class), but I don't know how to access the ObjectId of the BlockPropertiesTable from my BlockReference. This would be useful to get a list of all values available for a specific parameter in the table for example.
Any help would be much appreciated.
Solved! Go to Solution.
Can you please provide a minimal sample file containing your block, so I can take a closer look.
Here you go. This is a pipe fitting tee. The primary column of the BlockPropertiesTable lets you chose the fitting nominal pipe size (3/4"-NPT for example).
I know I can change the BlockReference property value (current row to display) like this:
For Each prop As DynamicBlockReferenceProperty In br.DynamicBlockReferencePropertyCollection If prop.PropertyName.ToUpper() = "BLOCK TABLE1" Then prop.Value = CShort(2) End If Next
But this does not give me any info about the the rows and columns of the BlockPropertiesTable entity.
Thanks in advance for your help!
The API for dynamic block is not very powerful, accessing parameters is basically all you can do, so the information you are looking for is probably not accessible directly.
You may want to check the following post, it exposes an approach to discover additional properties, but it involves some personal research on your side:
I hope it helps,
And, in case the graphics that were not lifted from the original article might help, here's a link:
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register