Jump to content

GioPet

Member
  • Posts

    98
  • Joined

  • Last visited

Posts posted by GioPet

  1. Dieter,

    thanks for pointing that out.

    I can see what you mean when you say it's easier to create an object rather than editing it.

    So I resolved it creating of the object with insertion point but, for this particular plug-in I worked on, the position of some of the objects is calculated in relation to the size/dimensions/position of previously created objects and in some instances it becomes easier to Duplicate+offset rather than figuring out the new insertion point.

    thank you all for all the tips.

    G

  2. Hi Dieter,

    no worries, I appreciate you asking for more info to help figure this out.

    I am working on a plugin tool that generates a series of graphic objects (rectangles and circles) and distributes them within a rectangular area defined by the user. The size, rotation and position of the objects are governed by a series of variables that are set by the user (with a sub -tool that writes the variables on a file).

    although it sounds not particularly useful, this plugin is to be used for a very specific workflow.

    If I was able to set the indicator of the bounding box at the center, then I could easily combine the variables (previously entered by the user) to set position, width and height of the objects by using the duplicate command. > this would be an easy thing.

    Otherwise, I will have to create a series of equations to determine all coordinates of new objects.

    I might be approaching this from the wrong programming-poin-of-view, so any comment is welcome.

    G

    PS: I haven't had a chance to try Kevin's suggestion

  3. Hi and thank you both for your comments.

    Hippocode: for what I am trying to achieve it is actually ok that the setting is global and affects all objects.

    Kevin: thanks for suggesting the functions SetCustomObjectSelectionGroup\GetCustomObjectSelectionGroup

    What I am trying to accomplish is to be able to set the indicator of the bounding box to the center so that I can use SetWidth and SetHeight to change the size of an object without the position of the object to change.

    .. in this way I could work around without having to resize by calculating the new coordinates object (hope that make sense)

    Thanks

    G

  4. Hi,

    I have created two Toolsets which is similar to the Visibility Tool, with the difference that each option (turn on/off class/layer, make class/layer active or invisible) can be accessed individually.

    These tools are a bit more 'direct' than the visibility tool as they can be assigned with a one-key shortcut so that they very easy to activate.

    The toolsets are available for download this from this URL: https://www.smartpaste.co.uk/#free-tools

    I hope this can be useful!

  5. Hi,

    I found it useful to create a custom plug-in that creates a rectangular Viewport crop which by default is created on the None class and its line attribute is set to white.

    In my workflow I always leave the None class switched on, so that the crop is always visible, and thanks to my plug-in I avoid the risk to create a viewport on other classes.

    This plugin is free to download this URL: https://www.smartpaste.co.uk/#free-tools

    I hope it helps!

  6. Dear Vectorworks users,

    I have recently released the new version of SmartPaste and Intuitive Tools, custom plugins created to support a more efficient workflow: SmartPaste & IntuitiveTools

    SmartPaste allows to maintain the structure of all your drawings consistent every time you Copy/Paste across different drawings: It’s great when working in larger teams or using drawing templates.

    IntuitiveTools are a set of free plugins created to streamline particular functions that can be easily used with single-key shortcuts: they are very handy if you work with a pen tablet as you can easily associate the IntuitiveTools with buttons on your tablet.

    This Community Board has been a great resource and inspiration for the development of these plugins, therefore I have created a coupon code for the users of the this Community Board who wish to download SmartPaste free of charge:

    coupon code at checkout: vw_community

    this code is valid until the 31st December 2015. If would like to download SmartPaste at a later date, please contact support@smartpaste.co.uk

    Best Wishes to all

    Giovanni

  7. I work with VW 2009 running on a Mac OS X.

    I realized that when using a tool, Ctrl+Click normally allows to select different Objects without having to de-select and re-select the tool in use.

    However, the Mac OS overrides the vectorworks Ctrl+click behavior with the default Ctrl+click=mouse right click.

    I couldn't find a way around this problem.

    Does anyone know how? either by changing the Mac OS or the Vectorworks behavior?

    thanks

  8. We have a Gigabit Ethernet, using Cat6 cables. No Link Aggregation.

    All that I noticed so far is that:

    1- It is not possible to run Updates from the User's account, only from a local account.

    2- files located on the user's desktops are always opened as Copies, as if Vectorworks didn't have writing permission on those. (not really relevant to us, since we work always off files located directly on the server9

    3- Noticeable speed problems occur when referencing more than one image in the same file.

    4- occasionally, It has happend that a Referenced Drawing has disappeared (the viewport of the reference is there but it's empty). after having a look at the history of the files, we could relate the problem to a sudden change in the Class structure of the file that was referenced. (typical when copy/paste across drawings.. in this, the Smart Paste plug-in I scripted is helping us enormously, check it in the Vectorscript Forum)

    5- there have been also some issues related to the position of the Zero Point across referenced drawings. This appeared to be misplaced, and we were not able to understand how it happened (we work with saved Zero Points, and we check this often)

    WIll keep you posted about other problems that might arise.

    G

  9. Has anyone already tested Vectorworks 2009 in a multi-user environment managed in Open Directory?

    Our server runs on MAC OSX 10.5.8, and manages 25 users.

    Vectorworks is installed locally on the Clients, but Users' Folders are located on the server.

    Are there any known issues or conflicts in this kind of scenario?

    Thanks

  10. Has anyone already tested Vectorworks 2009 in a multi-user environment managed in Open Directory?

    Our server runs on MAC OSX 10.5.8, and manages 25 users.

    Vectorworks is installed locally on the Clients, but Users' Folders are located on the server.

    Are there any known issues or conflicts in this kind of scenario?

    Thanks

  11. THis is more like it:

    PROCEDURE SetObjectClass;

    VAR

    Class_Options :Integer;

    h :HANDLE;

    x, y :REAL;

    Active_class :String;

    BEGIN

    Class_Options:=GetClassOptions;

    IF Class_Options<>1 Then Begin

    GetPt(x, y);

    h := PickObject(x, y);

    Active_class:= GetClass(h);

    NameClass(Active_Class);

    SetClassOptions(1);

    SetTool(-240);

    End else

    SetClassOptions(5);

    SetTool(-240);

    END;

    Run(SetObjectClass);

  12. Hi Orlando.

    Great Idea!

    THis Works out:

    Introduce the var Class_Options to use the GetClassOptions command.

    PROCEDURE SetObjectClass;

    VAR

    h : HANDLE;

    Active_class :STRING;

    x, y :REAL;

    Class_Options :Integer;

    BEGIN

    GetPt(x, y);

    h := PickObject(x, y);

    IF h<>NIL THEN BEGIN

    Class_Options:=GetClassOptions;

    IF Class_Options<>1 Then Begin

    Active_class:= GetClass(h);

    NameClass(Active_Class);

    SetClassOptions(1);

    SetTool(-240);

    End else

    SetClassOptions(5);

    SetTool(-240);

    End;

    END;

    Run(SetObjectClass);

  13. Here are the scripts for some simple tools to turn On/off a layer/class visibility by clicking on an object, or to set them as Active layer/class, or to turn off all the others.

    I was scripting these procedures to use them inside the script for one plugin, but I thought they could be useful also individual procedures.

    See the attached Plug-ins, the scripts on the following links:

    Hide the Layer of s Selected Object:

    http://pastebin.com/spkutw5t

    Hide the Class of a Selected Object:

    http://pastebin.com/PG3myeWF

    Set as Active the Layer of a Selected Object:

    http://pastebin.com/bBKiN6Z8

    Set as Active the Class of a Selected Object:

    http://pastebin.com/9AnTzBsa

    Gio

  14. Hi Pat,

    thanks

    I know it seems a bit redundant.. I just thought it would work for those few cases when the user wants to stretch the rectangle into an irregular polygon. No special need really.

    If anyone is wondering about the white Pen fore colour, that's because VW seems to have a bug that sometimes doesn't allow to select/edit a viewport crop with Line Style set to None.

    G

  15. Hello everyone!

    SMART PASTE is a command to control the automatic creation of new classes when Copy/Pasting across Drawings.

    I had some time to add some functionality to it, and here it is! in this update, the classes that are assigned will be listed below the class that they are assigned to. However,this is a "step" Update, as I realized that some things need to be re-thought in order to work how I actually think they should.

    So far, the Plug-in files and resources are attached and available to be tested, the following links has the full script:

    http://pastebin.com/V5nVxVqH

    Please, give feedbacks and suggestions!

    see the following:

    SUGGESTIONS

    1) Shortcuts:Assign Smart Paste and Smart Paste in PLace the shorcuts that are normally for Paste and Paste in Place. This really helps keeping the drawing structure consistent.

    2) Paste text inside text-fields: use the normal paste command only to paste text inside text-fields.

    KNOWN ISSUES

    1) Smart Paste does not REPLACE the normal Paste:

    In order to work, the normal paste needs to be left inside the menu, or in a submenu.

    2) Smart Paste does not work when Copy/Paste text INSIDE a text field:this is a behaviour that seems to be impossible to avoid..

    3) UNDO: at the current state, Smart PAste performs the assignment of incoming classes when the "Assign" Button is hit. Even though the Undo History is built step by step, once a class is assigned to another class, the objects on are assigned immediately, so the Undo is not capable to re-place the objects in their original class. I think this can be solved only by creating a record of all the assignments in a XML file, the UNDO reads the record and All the assignments are finally processed when the OK button is hit. (other suggestions?)

    4) Sorting the List Browser: Since the Undo History is based on the indexes of items in the lists, I set the EnableLBSorting to FALSE (Line 233,234). However this seems not to work, and it is still possible to sort the list. (if this is done before/after undoing, it will mess up the assignments). Does anyone have any idea why this happens?

    5) Smart PAste+Cancel+Smart Paste: in some cases it has happened that after hitting Cancel, and running again the Smart Paste, all Objects have been pasted in the None Class. This has occurred in certain cases, but I couldn't figure out why.

×
×
  • Create New...