How to set measure scale and other default values

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
rmcmanamy
User
Posts: 46
Joined: Thu Jun 23, 2005 1:01 pm

How to set measure scale and other default values

Post by rmcmanamy »

How can we programatically set the scale to use for measurments?

Also can we programatically set the lineweights to use for objects?
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to set measure scale and other default values

Post by Corwin - Tracker Sup »

How can we programatically set the scale to use for measurments?
For now there are no methods to do this.
Also can we programatically set the lineweights to use for objects?
Almost every tool has "Border.Width" property, which can be changed.
Just for example how to change line width in VB6:

Code: Select all

Call CoPDFXCview1.SetProperty("Commenting.Line.Styles[0].Border.Width", 5)
HTH
rmcmanamy
User
Posts: 46
Joined: Thu Jun 23, 2005 1:01 pm

Re: How to set measure scale and other default values

Post by rmcmanamy »

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.
Rodney McManamy
CADzation
AutoCAD to PDF and DWF Solutions
rmcmanamy@cadzation.com
http://www.cadzation.com
User avatar
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

Post by Vasyl-Tracker Dev Team »

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.
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.
Post Reply