.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to get BlockReference subentities in WCS

2 REPLIES 2
Reply
Message 1 of 3
pietrus00
745 Views, 2 Replies

how to get BlockReference subentities in WCS

Hello,

am trying to get BlockReference subentities. I need to get them in world coordinates so I can't use BlockTableRecord of BlockReference which gives me entities in objects coordinates.

So I use following code to get entities:

DBObjectCollection entset = new DBObjectCollection();

br.Explode(entset);

 

Problem is that sometimes I get error eCannotScaleNonUniformly Is there any workaround for this ?

Regards

Piotr

2 REPLIES 2
Message 2 of 3
chiefbraincloud
in reply to: pietrus00

Get the BlockTransform from the block reference, then iterate the objects in the BlockTableRecord and transform them by the BlockTransform.

Dave O.                                                                  Sig-Logos32.png
Message 3 of 3
Anonymous
in reply to: pietrus00

You can't transform entities in non-uniformly-scaled block references.

 

If you only need coordinates, you can use the BlockTransform to

do that.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost