.NET

.NET

Reply
Valued Contributor
60 Posts
1 Kudo
Registered: ‎06-08-2006
Post 1 of 2

Plot style reset after PlotInfo validation

129 Views, 1 Replies
06-23-2006 07:57 AM
I am able to set the plot style through the PlotSettingsValidator.SetCurrentStyleName() without any error. I know it detects the file because it throws an exception when the file does not exist. I configm the value is actually set in the plot settings. I set the OverrideSettings property of the PlotInfo, and validate. After validation, checking the style name in PlotInfo.ValidatedSettings returns an empty string.

The only reason I can find for the plot validator to reject (silently) my plot style is because it is a CTB. It says that depending on the "drawing mode", it checks for a CTB vs. STB file. What are the rules on this?

As far as I can tell, the plot style it uses to plot is monochrome.ctb (I discovered this after plotting and going to the plot dialog in ACAD to find the most recent setting). Where is it getting this value from? I cannot find any file with that name.

Any help explaining why my plot file may be rejected by the plot info validator (besides a bad path) would be greatly appreciated.

- Scott
Valued Contributor
60 Posts
1 Kudo
Registered: ‎06-08-2006
Post 2 of 2

Re: Plot style reset after PlotInfo validation

06-30-2006 10:11 AM in reply to: smcclure
Any ideas? There doesnt seem to be much experience/code using the new Plot API... Does anybody have some sample code? The only code I found was the code I posted :smileyhappy:

- Scott
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!