Jump to content

WhoCanDo

Member
  • Posts

    402
  • Joined

  • Last visited

Everything posted by WhoCanDo

  1. Hi, Can anyone explain why this is not working please? I want to use PP= with ForEachObject, but the test below indicates that (PP = Line_Style) doesn't work when the Line_Style is changed to a "Line Type" (Dotted, etc.) procedure test; var Line_Index : longint; begin ClrMessage; Line_Index := GetLSN (FSActLayer); Message (Line_Index); Wait (2); DSelectAll; SelectObj ((PP = Line_Index)); Message (GetLSN (FSActLayer), ' ', Line_Index); { ForEachObject (Do_This, ((T = Line) & (PP = Line_Index))); } end; run (test);
  2. Thanks, forgot about FSActLayer 😃
  3. Sorry, also the rectangle is a symbol with the name "A3 Border" Ok, just tested this. I need to use GetSymName, not GetName Thanks
  4. Just to be clear 😊, the rectangle has the class "Border" and name "A3 Border". I want GetName to tell me it's name is "A3 Border".
  5. Are you using the "DXF/DWG or DWF Import" or are you importing them directly into VW? We always convert the files using the above bulk converter rather than importing them directly.
  6. Hi, I have a rectangle on a layer with Class "Border" and Name "A3 Border" Can someone tell me why the following message does not return the name "A3 Border" please? procedure test; begin Layer ('Title Block'); DSelectAll; SelectObj ((L = 'Title Block') & (C = 'Border')); Message (GetName (FSObject (ActLayer))); end; run (test);
  7. When looking around the web regarding graphics cards for CAD, the recommendation is a Quadro. However, they then continue to refer to AutoCad, etc. If GTX is best for VW, I presume it's also OK for using the other CAD Viewers or Software for multi-tasking. I am guessing from all that I have read, that we should pick the GPU to suit our primary CAD software and secondary CAD software should work, but maybe at a slightly degraded performance. So, if we use VW 90% of the day, and AutoCad 10% then we pick a GTX, but if it were the other way around then we pick a Quadro. What's the opinion on this ?
  8. I am using VW with a black background to reduce eye strain. When I use VW to import a PDF vector drawing, the PDF has black lines and therefore, on the black background, I cannot see it. Is this an oversite/bug or can I change this somehow?
  9. If the PDF is vector, then you should be able to "File / Import PDF" from VW itself (I don't think Fundamentals does it). You can easily scale this down as you wish. However you will have to draw over the PDF objects if you want polygons to use in VW.
  10. It's not so much how many I open when working, but how many I need to open to print the fabrications drawings (could be 50). It's not reasonable to print as I go since they get lost in the communal printing pile. I like to print them in alpha-numeric order in one pile so the job doesn't separated and get lost. If VW doesn't allow more than 8, maybe a printing macro is what is needed.
  11. Thanks Julian, I can work with that 😊
  12. Thanks Julian, but that didn't work either ☹️ procedure test; var Response : boolean; begin Response := DeleteAllComponents (nil); Response := InsertNewComponentN (nil, 1, 5, 0, 10, 6, 0, 2); Response := InsertNewComponentN (nil, 2, 20, 0, 6, 10, Name2Index('Dash Style-2'), 0); SetTool (13); end; Run (test);
  13. Hi, I want to create a wall type with a dotted line cavity. In VW2018 this worked .. procedure test; var Response : boolean; begin Response := DeleteAllComponents (nil); Response := InsertNewComponentN (nil, 1, 5, 0, 10, 6, 0, 2); Response := InsertNewComponentN (nil, 2, 20, 0, 6, 10, -2, 0); SetTool (13); end; Run (test); However in VW2019, it doesn't. It seems that the -2 is the cause of the problem. -2 is the line type "Dash Style-2" from the standard pallet. If -2 is changed to 2 in this script, the wall looks like above with a solid cavity line. Can anyone suggest what changed between VW2018 & VW2019? Please note: that I was using InsertNewComponent in VW2018 but now I am forced to use InsertNewComponentN
  14. Finally. Fixed. Couldn't use ForEachObjectAt because a point is not and object for LOC, so I ended up finding all RoundWalls, calculating the center (of the wall not the CL), adding another 2mm straight wall at that location, so that LOC worked. Unfortunately, SetName did not work because LNewObj & LActLayer failed as usual, so I ended up finding all 2mm walls at the end and deleting them. A lot of fussing around when LOC says "Location is contained within boundary of a named object". Thanks all.
  15. Hi, Can anyone tell me how I can get this to work please? If T=Wall it works, but not if T=RoundWall. This is because the center point of the RoundWall is not within LOC. Procedure Check_for_Wall (hKP : handle); begin AlertDialog ('Here'); end; Procedure Check_Adjust (h : handle); begin SetName (h, 'Tmp'); ForEachObject (Check_for_Wall, ((Loc = 'Tmp') & ((T = Wall) or (T = RoundWall)))); DelName ('Tmp'); end; Begin Get the handle from bounding polygon and pass to Check_Adjust end;
  16. A bit late but why don't you create a folder in the root directory to access. This should be the same path for every PC/user.
  17. Sorry, can't help you. But I would like to know the answer too. So lets bump it to the top 😉
  18. Hi Julian, My VW2018 on Windows 7 creates the text file without error. Could it be the Windows version tightening up security?
  19. Nice to hear from you Hippocode, On my Tuesday post I requested ideas that did not include scripting. The reason being that thousands of VW users out there don't know how to script. Even so, if I were to write a script, I think the variables would be too great since sometimes I want to select an object with a record to change a field, but not all objects with that record (Digressed slightly). So, if I wanted to remove the records from half of my example, I would have the monotonous task of selecting some from many and then Kevin's idea will work, however annoying VW makes it.
  20. Thanks Kevin, No.2 sounds the go. I'll use that while everyone is waiting for the attached records to be put back into the OIP for quick and easy deletion. 🎉
  21. This is still hindering our drawing process enormously. Maybe I should approach this with some questions. If I have 230 objects on my layer (some lines, some walls, some polygons, etc., each with a different record attached, and half with the same record attached, how do I delete all the record attachments except for the common one? No scripting answers please 😉
  22. Hi, I want to create layers that have names like H-1, H-2, etc. Once the layer is created, then I want the layer name to reflect in my title block (I am not using the VW Title Blocks, etc.) However, I don't want the whole layer name since my drawing title already has the prefix job number. I only want the 1, 2, etc. I was thinking a worksheet that had the formula =copy (ActLayer, Pos('-', ActLayer) + 1, Len(ActLayer-Pos('-',ActLayer))) I didn't want to use a macro since the title block is on a layer of it's own at 1:1 and the drawing layers maybe 1:25 or something else to the location of the layer number could change per layer. What thoughts do you have?
  23. VW is changing in leaps and bounds but what about ScriptFunctionReference.html. It's always behind the times and doesn't offer explanations nor examples. Thanks Pat
  24. Nice one Julian, This got me onto the right track. Regards
×
×
  • Create New...