Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 4:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Drawing Functions
PostPosted: December 5th, 2007, 10:18 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I've been experimenting with scripting the new v6 drawing functions and wondered if anyone has thought of a way for the user to save the drawings once completed. This would allow re-opening of the drawing so the user could work on it more, make changes, additions.

It doesn't appear that using scripts like GetDisplayCharacteristics() and GetObjectDimensions() won't work, since these will only reproduce the frame in which the drawing is done, not the drawings themselves.

An alternative in my pub, would be to create an off-screen line (-50, -50) and using GetMousePosition, get and store the edge's of vector objects in a diagram, then clone the line to extend between the 2 vectors to serve as a connector. Problem here is that while you can script to get object dimensions which include the top, bottom, left and right of a line, there is no comparable script function for setting a clone (or any object) with these dimensions, only the center pos X and Y.

I am hoping someone can suggest a work-a-round. The only ideas I can come up with are scripting some complex maths with trig, that are way beyond my skills and abilities.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group