MaxStudio Posted January 17, 2008 Share Posted January 17, 2008 Is it possible to write a VectorScript that will allow me to edit a symbol? Are there any tutorials on this subject? Quote Link to comment
Jonathan Pickup Posted January 17, 2008 Share Posted January 17, 2008 you can use VectorScript to make and edit symbols Quote Link to comment
Pat Stanford Posted January 17, 2008 Share Posted January 17, 2008 Jonathan is correct that it can be done, but how to do it depends on what you are trying to do. So, what are you trying to do? Is it your symbol or just some generic symbol? Do you want to just go into the symbol edit mode, or do you want to make the changes and have them applied to all of the instances in the drawing? Tell us more and we can probably help you. Pat Quote Link to comment
MaxStudio Posted January 17, 2008 Author Share Posted January 17, 2008 I want to be to create a 2d/3d window symbol that allows me to do the same thing default windows allow me to do (customize window width, window height, trim size, wall depth, mullion patterns, etc. ..) is this possible? Quote Link to comment
Pat Stanford Posted January 17, 2008 Share Posted January 17, 2008 It is possible, but not easy. My guess is that the built in Window tool have around 4-5000 man hours of programming time. You can certainly do it with VectorScript, but do you have the time? Even a simple window object with far less options that the built-in object would be a few weeks work, not something you can throw together in an afternoon. Have you ever done any programming? VectorScript is similar to Pascal. Do you have Pascal experience? Do you like programming? Have you checked out WinDoor Manager? It is a third party object with a different set of options to the defaults. If it does what you need, it will be a much better use of your time. www.ozcad.com.au If you still want to go ahead, I will be glad to help you get started. The first step would be to write out all of the different pieces you want to draw and the ways you want to be able to modify them. Pat Quote Link to comment
Jonathan Pickup Posted January 17, 2008 Share Posted January 17, 2008 if you have no computer programming experience you will need to learn some. Quote Link to comment
MaxStudio Posted January 17, 2008 Author Share Posted January 17, 2008 Hey guys, Yeah I have had some programming experiance. I took basic and pascal in highschool. always had fun creating programs on my calculator. I took C++ in college and have messed around with maxscripts and mels before. I think I even attempted ruby once. I'm attaching an image file of the problem I'm trying to solve. The company I work for has only worked in vectorworks in a 2d format. We just purchased VW 2008 and we are trying to get up to speed with the BIM aspects of VW. Our office prides ourselves on the way our drawings look and you can see the difference between the two windows in the image file. The default window does not technically look correct in plan where the modified marvin window does. Thanks for all your help. Quote Link to comment
Pat Stanford Posted January 18, 2008 Share Posted January 18, 2008 OK, it looks like what you are trying to do is much simpler than writing an entirely new window tool. The Marvin window symbol (made with the generic window tool by the way) has the Use Wall Depth check box turned off, therefore it does not adjust to the wall setting. This makes sense since for a given Marvin window part number, the jamb depth is not going to change. It looks like what you want to be able to do is set the window parameters, in plan view, you want to be able to add the extension sill(?) and wall lines. To get the wall to cut properly in 3D, you need to put a 3D loci at each corner of the window (outside corner of the narrowest trim). You can create a script that will insert a standard PIO, give a reduced set of parameters and add the objects you need. For an example, take a look at the DanJ-Bolt tool at www.podcad.tv This is a wrapper script around the standard J-Bolt, Washer and Nut objects. Go to the On-line help and read through the VectorScript Guide, especially the sections on Plug In Objects and Parameter Records. My first step would be to create a "Simple Window" PIO that just inserts a regular window and shows a reduced set of parameters, Maybe as few as just the Height and Width. That will give you a good start that you can then build on to do the rest of what you are trying to do. I hope this helps. Pat Quote Link to comment
Vectorworks, Inc Employee Robert Anderson Posted January 18, 2008 Vectorworks, Inc Employee Share Posted January 18, 2008 The standard window will do what you want. See the attached image, which is a standard window. Note the highlighted settings, and note also the highlighted control point which controls the "component wrapping" of the wall. Turn off "Use wall depth" and set the jamb to a fixed depth. Use the "plan wall offset" to center the window the way you want in the wall. Or am I missing something? Quote Link to comment
MaxStudio Posted January 18, 2008 Author Share Posted January 18, 2008 Hey thanks guys! robert I tried everything you had suggested but how can I edit the component wrapping on a default window? the component wrapping point you talk about are 2D loci? if so how do i edit them? Pat I downloaded the Guide and will try to take an indepth look at it over the weekend. Thanks! Quote Link to comment
Vectorworks, Inc Employee Robert Anderson Posted January 18, 2008 Vectorworks, Inc Employee Share Posted January 18, 2008 MaxStudio, what do you mean by "default window"? Do you mean "standard VectorWorks window object"? Quote Link to comment
MaxStudio Posted January 18, 2008 Author Share Posted January 18, 2008 Yes SVWWO Quote Link to comment
Vectorworks, Inc Employee Robert Anderson Posted January 19, 2008 Vectorworks, Inc Employee Share Posted January 19, 2008 You edit the component wrapping on a standard VW window by first specifying the number of components to wrap. It has to be greater than zero. (See the highlighted field "External Comps" in my illustration.) Having a external or internal comps (to wrap) number greater than zero enables the control point (also highlighted in the image.) Moving this control point give you graphical control over the wrapping. It's actually much easier done than described once you know how to enable it... Quote Link to comment
Pat Stanford Posted January 20, 2008 Share Posted January 20, 2008 Also note that the control point only shows if you have one of the interactive scaling modes enabled in the 2D Selection Tool. If Interactive Scaling Disabled is selected, then you don't get any handles. I just spent about 15 minutes trying to figure out why I was not getting the control point. Pat Quote Link to comment
MaxStudio Posted January 21, 2008 Author Share Posted January 21, 2008 I got it work. Thanks! Another problem I ran into was when I was trying to use this window on a custom wall style I had created. I created a custom wall style that used a solid fill with a grey color. When I placed the window in the wall I had white blocks on either side of the window. After messing around with the window for awhile i realized that you can't use a custom wall style that uses a "Solid" fill. You need to use a wall style that uses a "Hatch". Otherwise you will get these white blocks on either side. Check out the attached pic. Quote Link to comment
Pat Stanford Posted January 21, 2008 Share Posted January 21, 2008 I would submit that picture as a bug. The window symbols should be able to properly cut a wall without caring what kind of fill it has. Pat Quote Link to comment
MaxStudio Posted January 24, 2008 Author Share Posted January 24, 2008 Hey Pat, Where would I submit this image? Is there a email address or an online form I can fill out? Quote Link to comment
Pat Stanford Posted January 24, 2008 Share Posted January 24, 2008 http://www.nemetschek.net/support/bugsubmit.php or bugsubmit@nemetschek.net Pat Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.