Article | 41023383 |
Type | HowTo |
Product | Engine |
Version | 4.1.6.1028 |
Date Added | 1/14/2004 |
Submitted by | Stavros |
Keywords |
Converting a drawing units from inches to metric and vise versa.
What I have to do if I want to insert a drawing which is in engineering mode in to a drawing which is in metric or vise versa?
VectorDraw uses the following form: if the lunits sytem variable is Engineering 1 D.U. = 1 inch if the lunits sytem variable is decimal then depend from the applicaton so may be: or 1 D.U. = 1 mm or 1 D.U. = 1 cm or 1 D.U. = 1 meter etc For the conversion between inches and millimiters we have : 1 inch = 25.4 mm For the conversion between inches and centimeters we have :1 inch = 2.54 cm For the conversion between inches and meters we have that :1 inch = 0.254 meters In simple words : If you want to insert a drawing which is in decimal(1du = 1 mm) in to a drawing which is Engineering then we must scale the drawing with the value of 1.0 / 25.4= 0.03937007 If you want to insert a drawing which is in Engineering (1du = 1 inch) in to a drawing which is decimal(1du = 1 mm) then we must scale the drawing with the value of 25.4 If you want to insert a drawing which is in decimal(1du = 1 centimeter) in to a drawing which is Engineering then we must scale the drawing with the value of 1.0 / 2.54= 0.3937007 If you want to insert a drawing which is in Engineering (1du = 1 inch) in to a drawing which is decimal(1du = 1 centimeter) then we must scale the drawing with the value of 2.54 If you want to insert a drawing which is in decimal(1du = 1 meter) in to a drawing which is Engineering then we must scale the drawing with the value of 1.0 / 0.254= 3.937007 If you want to insert a drawing which is in Engineering (1du = 1 inch) in to a drawing which is decimal(1du = 1 meter) then we must scale the drawing with the value of 0.254 The scale of the drawing can be done : after the open command using the cmdscale of commandaction. CmdScale("All",Array(0,0,0),scalefactor) or CmdInsert(BlockFilename,Array(0,0,0),scalefactor,scalefactor,0.0) to insert a drawing in to an existing one.