Valued Contributor
Posts: 67
Registered: ‎02-03-2012
Message 1 of 2 (124 Views)

Block with attributes scaling - what am I doing wrong?

124 Views, 1 Replies
11-29-2012 07:49 AM



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?





Distinguished Contributor
Posts: 136
Registered: ‎09-15-2011
Message 2 of 2 (120 Views)

Re: Block with attributes scaling - what am I doing wrong?

11-29-2012 08:23 AM in reply to: GrzesiekGP



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.



You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community