Xref Blocks

Xref Blocks

Anonymous
Not applicable
332 Views
4 Replies
Message 1 of 5

Xref Blocks

Anonymous
Not applicable
I have a electrical drawing which has the HVAC as an xref overlay. in the HVAC drawing is a block which has attributes. I want to be able to pick the hvac block and get its attributes. Problem is when I pick it, I get the entire HVAC xref. when I use getsubentitiy I get the line of the block definition not the block ref. I will post a sample drawing in the customer-files section. thanks
0 Likes
333 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Have you tried searching this ng for "attributes"? I'm sure you will find tons of code. Also, check out help on the HasAttributes property. -- ---- Ed ---- "Mike Daugird" wrote in message news:4075a908_2@newsprd01... > I have a electrical drawing which has the HVAC as an xref overlay. > in the HVAC drawing is a block which has attributes. > I want to be able to pick the hvac block and get its attributes. > Problem is when I pick it, I get the entire HVAC xref. > when I use getsubentitiy I get the line of the block definition not the block ref. > > I will post a sample drawing in the customer-files section. > thanks > >
0 Likes
Message 3 of 5

Anonymous
Not applicable
And when you pick the subentity, all objects have an OwnerID property inherited from the IAcadObject interface. You can use that with ThisDrawing.Utility.ObectIdToObject and examine its type to see if its a blockref. -- ---- Ed ---- "Mike Daugird" wrote in message news:4075a908_2@newsprd01... > I have a electrical drawing which has the HVAC as an xref overlay. > in the HVAC drawing is a block which has attributes. > I want to be able to pick the hvac block and get its attributes. > Problem is when I pick it, I get the entire HVAC xref. > when I use getsubentitiy I get the line of the block definition not the block ref. > > I will post a sample drawing in the customer-files section. > thanks > >
0 Likes
Message 4 of 5

Anonymous
Not applicable
that is not correct. I have tried that and it returns the block definition not the block ref. "Ed Jobe" wrote in message news:4075ab6f_1@newsprd01... > And when you pick the subentity, all objects have an OwnerID property > inherited from the IAcadObject interface. You can use that with > ThisDrawing.Utility.ObectIdToObject and examine its type to see if its a > blockref. > > -- > ---- > Ed > ---- > "Mike Daugird" wrote in message > news:4075a908_2@newsprd01... > > I have a electrical drawing which has the HVAC as an xref overlay. > > in the HVAC drawing is a block which has attributes. > > I want to be able to pick the hvac block and get its attributes. > > Problem is when I pick it, I get the entire HVAC xref. > > when I use getsubentitiy I get the line of the block definition not the > block ref. > > > > I will post a sample drawing in the customer-files section. > > thanks > > > > > >
0 Likes
Message 5 of 5

Anonymous
Not applicable
Solved, I needed the context data "Mike Daugird" wrote in message news:4075a908_2@newsprd01... > I have a electrical drawing which has the HVAC as an xref overlay. > in the HVAC drawing is a block which has attributes. > I want to be able to pick the hvac block and get its attributes. > Problem is when I pick it, I get the entire HVAC xref. > when I use getsubentitiy I get the line of the block definition not the block ref. > > I will post a sample drawing in the customer-files section. > thanks > >
0 Likes