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

Scaling Block Attributes

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Amremad
651 Views, 3 Replies

Scaling Block Attributes

Hello every body

 

How can i scale a block have some attributes , with known factor ?

3 REPLIES 3
Message 2 of 4
jaboone
in reply to: Amremad

(setq oldortho (getvar "orthomode"))
(setq oldcanno (getvar "cannoscalevalue"))

 

I have a lisp routine for finding scale of a drawing.  Search the cannoscalevalue to find drawing scale and do your required math from there.

 

Hope this helps.

Learning as I go
Message 3 of 4
Amremad
in reply to: jaboone

no i mean scalling using .net code

Message 4 of 4
_gile
in reply to: Amremad

Hi,

 

Did you try the Entity.TransformBy(Matrix3d.Scaling(scale, center)) method ?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

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