Jump to content

Musisback

Member
  • Posts

    154
  • Joined

  • Last visited

Posts posted by Musisback

  1. When I reset an PIO from a script, it takes a a pretty long time to redraw (a few second) although,it shouldn't because the PIO is very simple. (it tried with a rect(0,0,100,100) as PIO and the same think happens.)

    The weird thing is that when the VW file is new it works quite fast but when I work on the same file for a long time, it becomes very slow.

    Does anyone know what causes that and how to solves it?

    Thanks

  2. Is there a way to get the handle to an object by clicking on it?

    I don't think it's clear so here is another way to explain.

    I would like a function kind of like getpt() but instead of returning the coordonates a the point selected by the user, it returns an handle to the object on witch the user clicks.

    I don't think a such function exists, but if you guys find a ways do do this, please tell me.

    Thanks

  3. You can make a menucommando that will run your script and at the ending call the rpint dialog:

    PROCEDURE BlaBla;
    BEGIN
    {your code}
    DoMenuTextByName('Print',0);
    END;
    RUN(BlaBla);

    I gues you can do the same when you open a file (not tested):

    PROCEDURE BlaBla;
    BEGIN
    DoMenuTextByName('Open',0);
    {your code}
    END;
    RUN(BlaBla);

    I tried it to update automaticly a "date PIO" so that I always know at what time my file is printed. Well, it does not work. For some raison, it prints the file before updating the drawing. I tried to add wait(1) and redrawall to my script to let the time to update, is doesn't change anything....

  4. I am refering to a activated snapping smart point. (tiny red square)

    I Would like certain points to be "smart point activated" by the script (tiny red square) so the users of my tools wouldn't need to activate them there self.

    It might seem useless, but it is because I am having issues with the getline and the get point procedure of my tools like explained in this post:

    http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Main=29451&Number=144018#Post144018

  5. I also tried here on different OS (windows 7 and XP) on plenty computers.

    I have the SP3 but the SP4 is not available for my version yet.

    The scrip above did not work; There is no horizontal vertical snapping for the 2d click.

    Here is why I am pretty sure this is a bug:

    I tried running the script (and other ones of mine before) from the resource browser or as a command a then it works just fine.

    but when I run it as a tool (like I need it to be) then it works not ok.

    I get a similar bug in my tools in witch I use the getline(..) .

    The snapping to extension line (for the first click this time) does not work except when a run the script from as a command or from the ressource browser.

    About that there is something very odd: sometimes, when I have just opened the software, it work just fine for a some amont of time. But when it starts bugging, it never stops...

    I hope that the SP4 will correct this bug.

    Thanks for trying if you have any new ideas, let my know...

  6. For the second click, the snapping just don't work.

    -Nothing appends differently if I hold the shift key for the second click.

    -I get not horizontal or vertical snapping either. (unlike when I use any VW made tools)

    -I can get the angle snapping for the second click by adding a locus like you suggested. But then I need to activate the snapping for the locus (red square) by holding the cursor on it (or pressing t)

    -I don't want the users to have to do that so I am wondering if it is possible to activate (red square) a snapping point (in our case the locus) from the script.

    I hope you anderstand better,

    Thanks for your ideas

  7. In this, case, shift doesn't work for de vertical and horizontal snapping. At least not for the second click.

    Adding a locus works but then I need to "go get" the snapping point manually....

    I would be great to be able tu activate the snapping point from a script...

    If I am bothered by such details it is because I developpe tools for a bunch a people, it is hard for them when the sofware does not work properly...

  8. Thanks, but the problem with this technic is that there is no snapping between the different point of a getpt.

    I need at least the horizontal and vertical snapping.

    I tried to use de getline procedure, but then, the snapping to extention lines does not work anymore.

    So, I have 3 choices, but none of them is good:

    -I can use dirrectly the 2D Path object insertion tool. but then the users have to double click to finish. (after 2 click for example)

    -I can use getline but for some reason that I cannot understand, the snapping to extension line doesn't work for the first click.

    -I can use getpt or getptL (where the snapping always work for the first click). But then there is no horizontal or vertical snapping between the different points

    I posted 2 other post to find a solution, but nothing yet!!.

    http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Main=29442&Number=143716#Post143716

    http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Main=29439&Number=143696#Post143696

  9. I use tools to insert path PIO. The scripts begins with a getline or getrect but the snapping to extension lines does not work.

    I chooses the point where my cursor really is and not the 'smart cursor position'.

    the weird thing is that is snaps just fine with the procedure getpt.

    Does anyone know how to avoid this problem?

  10. Does anyone know if it is possible to activate the use of the 2D reshape tool with 3D path objects. It does not work with objects even if it works perfectly with 3D polygones and with 2D path objects.

    The 3D reshape tool works, but it does not allow to move serial verticles at once by selecting them with a rectangle. What is essential in my case.

    Thank you,

  11. I guess, it is not smart enough. That's a shame because if I need to change a single dimension of an object, it would need much more work and time. The goal a contraints is preciselly to avoid that. I have worked with other CAD software before, and they handled that just fine...

    Anyway if VW 2010 does handle it and someone knows how, please tell me.

×
×
  • Create New...