Plot window error

Plot window error

Anonymous
Not applicable
570 Views
4 Replies
Message 1 of 5

Plot window error

Anonymous
Not applicable
Hello all,

I have some code that gets a bounding box for an object, and draws a plot window with the coordinates to plot to a PNG file. I know the code is working correctly, because it is fine 90% of the time.
However, on the other 10% it gets the coordinates (which I can confirm are correct), but draws the plot window off to the top right. As I say, the code is working correctly. I think it is a problem with the drawing it’s self. If I copy all the data into a new drawing, the plot window is then correct. I have done everything I can think of to fix it, Purge, Audit etc, but I cannot get it to work.
Does anyone have any idea what would cause this problem and how to fix it?
Thank you in advance for you help. Edited by: andybone on Apr 15, 2009 3:11 PM
0 Likes
571 Views
4 Replies
Replies (4)
Message 2 of 5

arcticad
Advisor
Advisor
You will need to translate the local ucs to world ucs.

PT1 = ThisDrawing.Utility.TranslateCoordinates(PT1, acWorld, acDisplayDCS, False)
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 3 of 5

Anonymous
Not applicable
Nice one, thanks.
0 Likes
Message 4 of 5

arcticad
Advisor
Advisor
Your Welcome
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 5 of 5

Anonymous
Not applicable
Hello andybone,

I have been trying to create a VBA routine to do exactly what you say your's does. Would you be able to share this code with me?
0 Likes