How can we programatically set the scale to use for measurments?
Also can we programatically set the lineweights to use for objects?
How to set measure scale and other default values
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
How to set measure scale and other default values
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: How to set measure scale and other default values
For now there are no methods to do this.How can we programatically set the scale to use for measurments?
Almost every tool has "Border.Width" property, which can be changed.Also can we programatically set the lineweights to use for objects?
Just for example how to change line width in VB6:
Code: Select all
Call CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.Width", 5)
Re: How to set measure scale and other default values
Thanks. I just couldn't find if it was a comment or measurement or what the object was for it.
I finally found the distance one to be Commenting.Distance.
I finally found the distance one to be Commenting.Distance.
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: How to set measure scale and other default values
Additionally you may setup some new parameters:
scale mode (for exmpl: 1 inch = 1 km):
SetProperty("Tools.Distance.Measure.Simple.FromValue", 1.0);
SetProperty("Tools.Distance.Measure.Simple.FromUnit", "inch");
SetProperty("Tools.Distance.Measure.Simple.ToValue", 10.0);
SetProperty("Tools.Distance.Measure.Simple.ToUnit", "km");
the same for "Tools.Area", "Tools.Perimeter" tools.
scale mode (for exmpl: 1 inch = 1 km):
SetProperty("Tools.Distance.Measure.Simple.FromValue", 1.0);
SetProperty("Tools.Distance.Measure.Simple.FromUnit", "inch");
SetProperty("Tools.Distance.Measure.Simple.ToValue", 10.0);
SetProperty("Tools.Distance.Measure.Simple.ToUnit", "km");
the same for "Tools.Area", "Tools.Perimeter" tools.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.