Jump to content

Ajychau

Member
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Ajychau

  • Rank
    Greenhorn

Personal Information

  • Occupation
    Landscape Architect
  • Hobbies
    Design and Geeky Stuff.
  • Location
    Victoria, Australia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey Hippothamus, Thanks for the reply, I'll have another look at it. I was attempting to select all the objects on a specific class and then move it to a new layer. Then it needs to revert back to the original import layer and find a different class. I'll try out the Foreachobject command and see if that works, and I guess I'll build a script for each class first and then try combining it into a master script... Cheers!
  2. Hello! I've been thinking about writing a script that has the ability to automate the importing of consultant drawings and setting it up to our standards. Essentially I have a survey drawing coming in and it may have multiple classes for the contours. We generally want to move those contours to a separate layer. So the usual step would be: Import DWG, with prefix 'X_SUR-' for all the classes. Rename layer to 'X_Survey ACTIVE'. Create layer 'X_Survey contours'. Go to any class that might be 'X_SUR-contours major' or 'X_SUR-cont maj' or 'X_SUR-cont min' etc. Turn class options to 'Show/Snap' Select all Copy and then Paste in place in 'X_Survey contours' layer This is what I've written: PROCEDURE MoveObjClass; VAR LayBase, Lay1, className, Cs1, Cs1a: STRING; i, n: INTEGER; BEGIN LayBase:=Concat('X_Survey ACTIVE'); Lay1:=Concat('X_Survey Contour'); Layer(LayBase); SetLayerOptions(4); cs1:=('X_SUR-cont*'); FOR i := 3 TO CLASSNUM DO BEGIN className:=CLASSLIST(i); n:=POS(Cs1,className); IF (n=1) THEN BEGIN ShowClass(Cs1); SetClassOptions(5); ReDrawALL; SelectALL; DoMenuTextByName('Cut',0); Layer(Lay1); DoMenuTextByName('Paste In Place',0); END; END; END; RUN(MoveObjClass); It's a bit of a frankenstein peice of code...but I don't know if I'm heading down the right path, and I don't know how to get it to select the classes it finds with "X_SUR-cont" Any help would be much appreciated!! Happy Easter!
  3. Second the wish. Now time to look for a script that does it.
  4. Okay Dokies! It seems that the issue is a user related issue! (but yet to be confirmed) There is a solution though, Tools>Set origin>Set origin to drawing center.
  5. Thanks Vincent, it's hard to submit a bug report, as the files associated are big, and it is hard to replicate. I've emailed NV support in my country...let's see what comes back..
  6. Hey everybody, We've been experiencing a bizarre issue with Vectorworks, first noticed in 12.5, occured in 2010, more frequent in 2012. But to explain it properly I have to paint an image of how we structure our files. We have numerous files to complete 1 design package. Survey Civil Arch Landscape Details Sections We reference everything into a design package file, we use the layer reference function, and everything is georeferenced, so for Melbourne, Aust, everything is roughly at x=350000ish, y=5200000ish. Now the issue that we are experiencing is that one of our working files, ie. landscape, moves to the wrong coordinates. Everything moves there, including the locked reference layers. It even saves in the wrong location and opens in the wrong location. The only times that you notice that something has gone horribly wrong is when you set up stakes or coordinate markers for setout, or when you update your reference files (which in the original file stays in the correct coordinates, so the update will move the reference layers back to the correct location). Has anyone else experienced this issue? Has anyone got a solution? This is a major issue if you are dependent on the coordinates. The only fix that we have is reverting back to an archived copy of the file, or laboriously moving everything to the right location.
  7. Hey Nathan, Super late reply to your query, but... We have experienced the same issue that you have described. What I find is that the reference files are in the correct location, and the file that you are working in has moved to another location. Updating the references will then move the correctly located survey to it's correct location, exposing the working file's wrong position. At first I thought it happens when VW crashes, but it has just happened to a file of mine and it has not crashed recently. Can you confirm that the referenced survey file is in the correct coordinates?
  8. Have you got transparencies? I find that PDF translate the transparencies differently to how the Quicktime engine renders it on screen. I had the same issue as you described above and was further confused by why some of my PDFs exported from within the same file were perfectly color matched.
  9. So I added dialog boxes so anyone can just type in the strings of text that need replacing... PROCEDURE FindRenameClasses; { Modded by Andrew Chau based on Renameclasses by ? Petri Sakkinen 1997 - 2009 } VAR className, newName, cs1, cs2 {cs1 is the trigger or to be replaced, cs2 is the replacement} : STRING; i, j, n : INTEGER; BEGIN cs1:=StrDialog(Concat('Find text string in class name to rename...',Chr(13),Chr(13),'Find:'), 'S_'); IF NOT DidCancel THEN cs2:=StrDialog(Concat('Rename text string in class name...',Chr(13),Chr(13),'Replace:'),'X_S-'); j := LEN(cs1); FOR i := 3 TO CLASSNUM DO BEGIN className := CLASSLIST(i); n := POS(cs1, className); IF (n=1) THEN BEGIN newName := className; DELETE(newName, 1, j); RENAMECLASS(className, CONCAT(cs2, newName)); END; END; END; RUN(FindRenameClasses);
  10. We occasionally get this problem as well. What we have found is that it is usually attributed to a polyline that is fairly big and attempting to close itself. Happens with contours and similar large polyline objects. You can sometimes detect them when you zoom in close it might fill in or momentarily show a closed polyline. Polygons are usually better to work with in this case, you can convert it to a polygon by decomposing the offending line and composing it again... But otherwise you'll have to somehow turn the PDF into an image file and back to PDF again...
  11. I found that if you select all the duplicates of one particular polygon and add them (from the modify menu) that combines them to 1 polygon. The other option is if you had imported the file from DWG and that it inherently had duplicates in DWG, go back to AutoCAD and 'Overkill' it there first. Type in 'Overkill' and select all objects and leave default check boxes checked.
  12. If you have access to AutoCAD, go back there and 'Overkill' your file. That will get rid of the duplicates...literally type in 'overkill' leave the defaults checked and let it do its thing...If you don't have ACad, good luck and I hope you have health insurance for that RSI you'll be getting by going through manually cleaning the drawing.
  13. Vectorbits is now at vectorbits.org and the plugin is only for mac.
  14. That's a pretty awesome Script...looking at making it more user friendly with input dialogs for what the 'trigger' and the 'replacement' could be..
  15. Hey Guys, This is awesome! I just modified it slightly to help with tracking printed documents! Our template now has your script sitting in there! Cheers!

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...