MullinRJ
Member-
Posts
2,101 -
Joined
-
Last visited
Reputation
587 SpectacularPersonal Information
-
Occupation
Circuit Board Designer
-
Location
United States
Recent Profile Visitors
-
how can i access the vs.GetNumFaces(h) in symbols
MullinRJ replied to pascalachermann's topic in Python Scripting
Hello @pascalachermann, I was able to open your new file. However, I still am not able to run your Python script to see what it does, because it contains unique calls that are only available to you on your VW installation, namely: vs.GetNumFaces() and vs.GetPolyFaceNormal(). I think your best bet is to find someone with the same VW installation to help you. If there is a way to post the workings of those two functions, then more people on this forum might be able to lend a hand. All the best, Raymond -
how can i access the vs.GetNumFaces(h) in symbols
MullinRJ replied to pascalachermann's topic in Python Scripting
Hello @pascalachermann, I tried to open your file but I got a warning that the license is not valid, so it wouldn't open. You may need to contact your distributor, or VW Inc., if this is in error. Raymond -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
I just did. 😉 Raymond -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
Hi @Matt Overton, I don't think this issue falls into the category of a workaround. After further investigation by several members in this thread I believe it was determined there really is a bug with the way the Scale Bar tool operates. I'm pretty sure VW will address it promptly. Raymond -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
Hi @Tom W., It gets curiouser and curiouser each time I go back. I now see what you are seeing. But only after I toggle the "Adjust Units" checkbox two or three times does the display change to an "M". The first few times I toggle it, I see "mm". Only if I keep toggling it does the unit change to "M". I then opened a new document in "mm" and placed the Scale Bar. I get an "M" right away. After toggling the "Adjust Units" checkbox several times I finally see "mm" alternating with "M". When I pause several seconds between toggles, the units don't switch, but repeat either mm, mm, mm or M, M, and then they start switching again. I was not able to see a pattern of what was going to display on the next toggle. It's DEFINITELY broken. Raymond -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
@Tom W., You have me at a loss. I just tried the Scale Bar tool in multiple units (all standard VW defined), and I always get a small "m" for meters, regardless of the Adjust Units setting. Without access to your system settings I don't know what to suggest. However, you can look directly at the Units Mark for your current Units setting with this one-line Vectorscript. AlrtDialog(concat('Units mark – "', GetPrefString(154), '"')); If it differs from the units mark shown in the Scale Bar tool, then you can definitely point a finger at the tool and/or its settings. Raymond PS - I checked both VW 2024 and 2023 in using Meters as the default unit and they both have a small "m" defined as the unit mark. This is on US Mac version. -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
And I thought everyone would be happy that you CAN define a unit standard with the look and feel you desire – TODAY. I'm pretty sure this will be addressed in the future, but rejoice that you don't have to wait for a future release. This is a good thing. 🙂 Raymond -
Correct abbreviation for meters in Scale Bar
MullinRJ replied to Anders Brix's question in Wishlist - Feature and Content Requests
Hello @Anders Brix, You can have your "little m" and display it, too. Create a custom unit in the Units Dialog (menu File-> Document Settings-> Units.) Click on the Custom... button. You can call it "Meters" and it will display as "Meters (Custom)" as follows: To make this a universal change, create a template file and save it as "Meters". Set your favorite Layer Scale, and other attributes, the way you like them (assuming they are not already set), and use menu File-> Save as Template... . This will create a stationary file, with .sta as the file extension, and place it in your User Folder. When you create a new file, select your new template file as shown. The custom Meters units will be defined and selected. You'll get the "small m" when units are displayed throughout the document. Note: When you assign the unit letter (m), you can include a space before it " m", or omit the space. Some people like the unit to abut the numeric value, and some do not. Your choice. HTH, Raymond -
How to Constrain Text Within a Symbol
MullinRJ replied to Mackenzie Cleaves's question in Wishlist - Feature and Content Requests
@Mackenzie Cleaves, Please post a sample VW file with your GFCI symbol. Raymond -
Hello @kliefhead, Short answer: Add it to your workspace. If you are not familiar with adding a plug-in to VW, a longer answer follows. The file I added is not a script, but a Plug-in Tool. It has a short script inside it. You will have to add the .vst file to your Plug-ins folder in the VW 2024 User Folder to make it useful. To find the User Folder on your drive, open the VW Preferences dialog and select "User Folders" in the left pane. In the right pane there is a "Reveal in Finder" button. Press it and the VW User folder/directory will open on your computer. Open the folder that says 2024 (which should be selected) and copy the Orient.vst file into the Plug-ins subfolder. Then close VW and launch it again. VW will now recognize the newly added Orient tool. When VW is open again, open the Workspace Editor (Cmd+Opt+Shift+W, on the Mac; Ctrl+Alt+Shift+W on the PC; or VW menu Tools->Workspaces->Edit Current Workspace...) Select the Tools tab at the top of the window and expand the >Tools category in the left pane by clicking on the arrow to the left of "Tools". Find the Orient tool, and drag it to one of your tool pallets in the right pane, or create a new Tool Palette and add it to that. The tool is now accessible to VW in the palette you chose when you are drawing (it will have a default wrench icon, and will show "Orient Tool" when you hover the cursor over it.) Before you close the Workspace Editor, you can assign a HotKey (keyboard shortcut) to the new tool for faster access. This last step is optional. For more information on using the Workspace Editor, open VW Help (F1) and search for "workspace edit". Click on the "Customizing workspaces" link that pops up. HTH, Raymond
-
Hello @kliefhead, I've attached a very simple Vectorscript Tool to do what you showed above. This tool only works on one object, and the object does not have to be selected before the tool runs. Also, other selected objects are not affected by the tool when it runs, which is somewhat counter intuitive to the operation of many tools in VW. If you want a different interaction when multiple objects are already selected, please describe that in more detail. At the present I only did what was described. To run the tool, Select the tool, then draw two lines. (Click-Drag and Click-Click drawing modes are selected in the VW Preferences.) The first line should be drawn over the object you want to move as the first point of the line will be used to select the object to move. The second Line should be drawn where you want the the object moved, with the first point (of the second line) defining how far the object will move. The second point of the second line will define the rotation applied to the object after it is moved. If you have any questions, please write back. The "Orient" tool plug-in tool is unlocked, so you or anyone else can edit its functionality and make it do truly wondrous things. It is compiled in VW 2018 so people using older version of VW can use it, and it can be found in the "Tools" category when you add it to your workspace. Oh, and I didn't add a tool icon. I'll leave that to you or another to make this tool complete. Icons need to be 20x26 pixels and 40x52 pixels @ 72 dpi, and named Tool_Icon.png, and Tool_Icon@2X.png, respectively. Of course "Tool_Icon" can be any name as long as the naming format follows the example above. Use the Plug-In Editor to add icons, or edit functionality. Orient.vst All the best, Raymond
-
how can i access the vs.GetNumFaces(h) in symbols
MullinRJ replied to pascalachermann's topic in Python Scripting
Hello @pascalachermann, Are you using an extension for the VS commands? If so, most of us in the US will not be able to help you directly because we do not have the same extension. Please describe your setup in more detail. Thank you, Raymond -
how can i access the vs.GetNumFaces(h) in symbols
MullinRJ replied to pascalachermann's topic in Python Scripting
Hello, @pascalachermann. It would help a lot if you'd post a sample VW file that contained symbols that you were trying to process. Also, please include a symbol with before and after states so we can see what the answer should look like, even if you have to do it by hand. Guessing is not a good way to go when trying to solve someone else's problem. vs.GetPolyFaceNormal() and vs.GetPolyFaceNormal() are not a built-in VW functions, so you might want to post them, too. Thanks, Raymond -
Hello @Gadzooks, The tool as written does not apply any graphic attributes to the rectangle or lines, so it uses the current drawing settings when it's invoked. The Plug-in is unlocked, so you can easily* modify it to always draw with a certain pen thickness, color, and pattern. Just remember to place a PushAttrs; call before your attribute changes and place a PopAttrs; call after them to will restore the current graphic state when the tool finishes. RectX.vst for version VW 2018 (and newer): RectX.vst Raymond * If you need help doing the "easily" thing, contact me offline and I can help you make the adjustments, but so can may others on this forum.
-
Hello @MartinBlomberg, If you want to draw a rectangle freehand, then the Detailing Cut Wood object will seem a bit restrictive, though it might be close to what you want. @Pat Stanford's script will do one better, but you'll have to run the script for each rectangle you wish to create. Without making it overly complicated, I've attached a simple plug-in tool that will let you draw a rectangle and it will put an X between the corners. Because it is a Tool, you can keep drawing X'd Rects until you change tools. I meant to post it yesterday, but I left my computer and only now realized I forgot to hit SUBMIT. First, copy the tool to your User Folder and place it in the Plug-ins subfolder for your VW version. This is compiled in VW 2023, so it will work in the most recent two versions of VW. Place the tool in any of your tool palettes, or make a new palette for custom tools and objects. When you select this tool it will draw a Rectangle and two Lines using the current graphics attributes. The result is a Group containing a Rect and two Lines. It is also possible to create the same shapes by making the tool a Plug-in object, which would allow you to add rotation to the controls o the OIP. As group, you can still edit the XY position and the ∆XY size of the object. Once you add the tool to your workspace(s), you can assign a HotKey to facilitate quick access to the tool with the keyboard. I placed the Tool in the Detailing category, but you can change that with the Plug-In editor once it is loaded in your Plug-ins user folder. The tool is unlocked. RectX.vst Raymond