Jump to content

WhoCanDo

Member
  • Posts

    395
  • Joined

  • Last visited

Everything posted by WhoCanDo

  1. I have customers that, annoyingly, send me jigsaw pieces of their product. I will re-draw these pieces on design layers and then create viewports of each piece so I can arrange them and fit them together to see what it looks like completed. Next I will add a class to each of the components for parts lists. The reason for the completed viewport view is so I can add classes in some sort of regular alpha-numeric flow (eg. left to right). However, after adding classes, it seems that the default for the viewport class list is "Invisible". I was wondering if there was an option to default "Visible" instead of default "Invisible". Maybe this is a fault that needs to be corrected by VW??
  2. Perfect Raymond, your a time saver LOL
  3. Hi, I work in 2D on the Design layers. When I'm given more designs to draw than will fit on an A3 page at a reasonable scale, I will draw them anywhere on the Design layer and then place a rectangle around each design to create a bounding box for each viewport. Then I can sort those viewport crops into an order of my choice and create multiple Sheet layers to accommodate the compete project. The latest project has 34 viewports on 3 Sheet layers when finished. 34 viewports created one at a time is a pain so I have written a macro create all the viewports so I can cut and paste them onto the Sheet layers as I see fit. The problem is that the macro below randomly selects my bounding boxes and makes viewports of the contents, but the bounding boxes it ignores, it just makes a viewport of the whole layer. From the 34 viewports on my current project, it makes 15 viewports from the bounding boxes, and 19 layer viewports. It always uses the same bounding boxes for the 15, and always creates the the same layer viewports. Any ideas as to how to correct this ? procedure Main; var Lyr, LineStyleName : string; i, j : integer; Pt : Array [1..500, 1..500] of real; hL, hV : handle; procedure Log_Selected (h : handle); begin SetName (h, 'Tmp'); i := i + 1; Pt[i, 1] := LeftBoundN (N='Tmp'); Pt[i, 2] := BotBoundN (N='Tmp'); DelName ('Tmp'); end; procedure Create_Viewport; begin hV := PickObject (Pt[j, 1], Pt[j, 2]); if (hV <> Nil) then begin SetSelect (hV); DoMenuTextByName ('Create Viewport', 0); Layer (Lyr); end; end; begin hL := ActLayer; Lyr := GetLName (hL); i := 0; ForEachObject (Log_Selected, ((Sel=True) & (L=Lyr))); DSelectAll; For j := 1 to i do begin Create_Viewport; end; end; run (Main);
  4. Unfortunately, when there is a bug that doesn't have a work-around, the forum can't help and the only resort is a bug report to limbo.
  5. I wish that support could start a ticketing system for reported bugs. When I have reported bugs in the past, there is no "thankyou" or "we've registered your problem" or anything. There is nothing to follow to know if it is being fixed or not received or ignored. A ticketing system would respond with a ticket number that could be followed. An accessible list could advise us of the current status, and maybe a favourites button (per user) could count up users with the issue and increase the priority. My last bug report in February is major for us. We can't change from 2021 to 2022 until fixed. Without feedback we could be waiting until 2023 or 2024 before we can upgrade, and we may be paying for Service Select without being able to use the latest versions.
  6. Hi, I've written a macro to rename ( SetName ) my sheet names eg. Sht-1, Sht-2, Sht-3 to Sht-2, Sht-1, Sht-3 However, ideally, I would like to change the stacking order. Is there a procedure or function to do this ?
  7. Nice one Raymond, this works for me 😊 procedure Delete_Vertex; var i, j, VT : integer; AR : real; p1, p2 : vector; hPoly : handle; begin GetPt (p1.x, p1.y); hPoly := PickObject (p1.x, p1.y); SetSelect (hPoly); j := GetVertNum (hPoly); for i := 1 to j do begin GetPolylineVertex (hPoly, i, p2.x, p2.y, VT, AR); if (Norm (p2 - p1) = 0) then DelVertex (hPoly, i); end; end; run (Delete_Vertex);
  8. Hi, Using GetVertNum I can get the number of vertices in a polygon. Using DelVertex I can delete one of those vertices. But how can I delete a specific vertex? Can I point to it with the cursor? How can I find the vertex number from pointing to it?
  9. Thanks Raymond, Since I can export the VW2022 file to VW2021, and it works in VW2021, then I shall have to report this as a bug on the Windows platform. Thanks for your help.
  10. Hi Raymond, Are you saying that after the script is run, that all objects except the large polygon have the MyRecord attached without additional interaction ? I only see this attached to the wall object on a Windows PC.
  11. Hi, I've been using this abridged macro for years. However, it doesn't seem to work with VW2022. Can anyone suggest why all the objects within the large polygon will accept the attachment of MyRecord (change this name as required), except the Wall object ? procedure Fetch; var hFSA : handle; procedure Test (h : handle); begin SetRecord (h, 'MyRecord'); end; begin DelName ('Tmp'); hFSA := FSActLayer; SetName (hFSA, 'Tmp'); ForEachObject (Test, (Loc = 'Tmp')); end; run (Fetch);
  12. Hi Peter, Yes, I did migrated it across. Your question prompted me to look at the standard workspace and I have found it. However, it doesn't work when I add it to my migrated workspace. All other right click options have disappeared and only the Recent Commands is visible. Clicking on it crashes VW.
  13. Hi Peter, I am not using 2022 until the bugs are fixed. The above is a picture of 2021. However, I don't see any difference in 2022 when I compare them. Where is Repeat Last Command?
  14. Hi Peter, Am I missing something here? I don't have Last Command and Recent Commands under right click. I even looked in Workspace Edit to see if was there. Can you expand your suggestion please? Wow, a search on the web for "Repeat Last Command" goes back to before this new platform. All asking the same thing as below. Below left is what I currently have thanks to Pat ( Previous Tools ), however, on the right is what I want. An example list of commands/macros that I frequently use. 5 to 10 would be good.
  15. Thanks Pat, Got that one, but I was really referring to commands like Move or Save or more importantly - the macro commands I make myself.
  16. Hi, My wish would be to add to the Smart Option Display, a selection of last used commands/macros. Maybe the last 5 macros I used, so I can use them again repetitively for a while.
  17. Thanks Tom. With your confirmation, I've tried several tests and have found the reason why. We draw with Document Preferences/Use Layer Colors "on" by default. For some reason, "on" won't print worksheets in colour, "off" will. So, can any one tell me if this is a bug or intentional please?
  18. It seems that it is possible to highlight cells in colour by changing the cells pattern to solid and choose a colour. However, those colours don't print to a printer or Microsoft print to PDF. What's the point of having the ability of highlighting if it can't be printed? How can I print them in colour?
  19. Thanks JB, Where do I get a list of these Preference numbers and their definitions from ?
  20. Hi, Is there a script procedure that can can allow me to change the custom distance in VW Preferences? I often change this from 3 to 5 and back again throughout the day 🙂
  21. Just printed another 35. Hi Pat. It's been suggested that I use Viewports, however, it's too slow from what I can achieve. Just imagine a small jigsaw and taking each piece to dimension. Include a Bill of Materials and a quantity and a title specific to that piece. I'm open to suggestions in another thread but I'm not seeing the speed advantages since I can copy and paste a piece into another file and run a macro that adds dimensions and all of the above from just one click, or use a worksheet that achieves similar results without listing all the other pieces in the GA file. My continued vote is still 10 or more 😉
  22. I'm printing 140 files today. 8 at a time 😔 Not unusual to print many. We use VW to create a construction GA ( think of a house ). For fabrication, we draw separate drawings for each item ( 10000 x bricks on one drawing, 1 x front door on another, 2 x windows on another, etc. ) If it can't be infinite, at least make it 10. I hate counting in eights.
  23. Therefore, this would be the Centroid or center of gravity. Thanks 🙂
  24. Hi, What is the + sign for near the center of a polygon for? It's not the center since the diagonal lines I have below show the center.
×
×
  • Create New...