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

Block with attributes scaling - what am I doing wrong?

1 REPLY 1
Reply
Message 1 of 2
GrzesiekGP
345 Views, 1 Reply

Block with attributes scaling - what am I doing wrong?

Hey,

 

I'm trying to make some command which allows me to easily scale blocks.

 

I've this code:

                                    BlockReference br = (BlockReference)obj as BlockReference;
                                    br.ScaleFactors = new Scale3d(0.5, 0.5, 1);

 Everything is ok, lines, circles, etc. in block are scalling correctly.

But I have problem with attributes (look at the image) - attributes are not scaling and their position are not correct.

 

Simple command ("scale") is working OK, so what am I doing wrong?

 

 

 

 

1 REPLY 1
Message 2 of 2
khoa.ho
in reply to: GrzesiekGP

Hi,

 

You can find this answer at TheSwamp how to scale the block with attributes: http://www.theswamp.org/index.php?topic=34057.5;wap2 . The key point is using BlockTransform matrix to transform attributes.

 

-Khoa

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