Jump to content

Matt Panzer

Vectorworks, Inc Employee
  • Posts

    3,337
  • Joined

  • Last visited

Everything posted by Matt Panzer

  1. Matt Panzer

    URL

    Hi Robert, That's what I thought but I was silly enough to try it anyway. :-) Try something like this: ------------------------------- NameClass('MyClass'); SetRecord( GetObject('MyClass'), 'MyRecord' ); SetRField( GetObject('MyClass'), 'MyRecord', 'Field 1', 'This is a test' ); ------------------------------- Then this: ------------------------------- Message ( GetRField( GetObject('MyClass'), 'MyRecord', 'Field 1' ) ); ------------------------------- Amazingly enough, it works!
  2. Matt Panzer

    URL

    Ahh. That's what I get for skimming this thread. I probably need to reread a bunch of things to be more helpful. While I still don't have a complete understanding of what you're trying to do, it sounds like loci would be best for carrying the data, but a symbol might be a great place to store them all in and also serve as a transfer mechanism from file to file.
  3. Matt Panzer

    URL

    Hi Farookey, Yep. Mind you, I have not yet done much with this ability so you'll want to experiment a bit to make sure it works as you'd expect. IOW, use at your own risk. :-) As for every object in a class automatically having a record attached. No, Think of the class definition as an object that has the record attached. Objects using that class are still different objects with their own records. There is no way of attaching a record to a layer or class without scripting it. But, commands could be created to allow you to do just that. Attaching the records (using Vectorscript) works the same way as it does for any other object. As long as you have the handle to the layer or class, you can attach the record. DISCLAIMER: Like I said, I haven't played around with this much so, anyone that knows or discovers otherwise, please correct me. Oh, and I'm not responsible for anything that could possibly go wrong as a result of doing this. :-P
  4. Just to elaborate on Cinema 4D: Renderworks 2011 and later is based on the Cinema 4D render engine and has a command to send/update files directly to Cinema 4D. Because of this, I would imagine Cinema 4D would be the most seamless Renderer (by far) to move VW files to and would keep lighting and textures in tact. However, I do not own Cinema 4D and cannot speak from experience. Perhaps someone with more experience can elaborate further?
  5. Matt Panzer

    URL

    Hi Pat, I'm a little late on this, but you can also attach a record directly to a layer (and even a class, BTW). No need for loci.
  6. Thanks Jonathan! I'm glad you like the new features! They let you touchup your rendering without the need for an image editor. If anyone has any general questions or comments about CameraMatch, feel free to reply to this thread.
  7. CameraMatch 2011 now updated for Vectorworks 2012! Check out our latest Overview Video!
  8. Great! :-) If/when you do, I'd love to hear any comments you may have on it.
  9. Hi Vincent, This script will do it. It will toggle all visible and invisible classes (except the "None" class) and it will leave grey classes grey. If you'd like to include the "None" class change the line: FOR i := 2 TO ClassNum DO BEGIN TO: FOR i := 1 TO ClassNum DO BEGIN --------------------------------------- PROCEDURE MAIN; CONST kVisible = 0; kHidden = -1; kGreyed = 2; VAR i : INTEGER; BEGIN FOR i := 2 TO ClassNum DO BEGIN CASE GetCVis(ClassList(i)) OF kVisible: HideClass(ClassList(i)); kHidden: ShowClass(ClassList(i)); kGreyed: {do nothing}; END; {CASE} END; END; RUN (MAIN); ----------------------------------------------- HTH,
  10. Peter's solution can work in plan if you place both the PIOs in a symbol.
  11. Hi Carl, Attached, is a VW 12 file of a boathouse I originally rendered using Vectorworks 11. As you'll see in the attached JPG, the water (using the leather bump map) rendered very nice, but I'm not seeing the same effect in VW 12. Feel free to download and use the water texture in the file if you can get the bump map to work. If you can get the bump map to work, you can change the textures color and add some transparency to get something closer to what you're after. HTH,
  12. Very good advice Diamond. I have made many similar changes and they have helped, but any task that involves holding the mouse button down has a noticeable effect on my hand.
  13. Seems to me that users are married to one or the other. It's one of those "set it and forget it" prefs for me.
  14. I never use Click-drag mode. WAY back, there was a time that VW (MiniCAD, back then) required you to keep the mouse button down while typing in a distance in the data bar (even in Click-Click mode). I developed RSI in the extenders in my right hand. I later bought a kensington 5-button mouse and programed one of the buttons to a Click-Hold. This relieved my RSI a GREAT deal. NV later fixed VW so users could let go of the mouse to type in the data bar. So my opinion is that clicking and holding a mouse button longer than you have to creates more stress on your hand than clicking twice. Just my experience...
  15. No problem! Sorry for not explaining how to install the plug-in. I hope you find it useful!
  16. I created a free plug-in object for this. Here's the description from the website: Break Poly Plug-in Object for Vectorworks ?2010 Matthew Panzer - PanzerCAD Services, Inc. This Plug-in Object creates a polygon with break symbols along each visible segment. This allows it to have a white fill to mask out objects below and allows different configurations (ie: two or more break line segments with a white masking fill between). The visibility of each segment is set via the 2D Reshape tool in "Hide / Show Edges Mode". NOTE: At this time, only the "Straight" breakline type is available in the plug-in. Break Poly PIO
  17. Like Bruce, I have Wacom Intuos2 tablet (to replace a cheaper Wacom tablet). I originally bought both tablets hoping to use the pen to ease the stress on my hand. I never could get used to the stylus for CAD. I found it difficult to be precise when clicking on points. I have, however, used the included mouse with the tablets and have been very happy with it. I have two 24" monitors mapped to an area on the tablet so that the mouse never runs out of room. IOW, you never have to pickup the mouse because of running out of desk space. I also added some key combinations to the side buttons on the mouse. The left button is "cmd-[" (Edit Group) and the right "cmd-" (Exit Group). This allows me to enter and exit containers in VW without the keyboard. While the Intuos2 is a little pricy, it has been my favorite for some time now.
  18. Good to hear you were able to create it yourself. The plug-in could come in handy, but I think it needs more polishing. Also, it should have an easy way to have it generate a golden spiral without having to figure out the parameters. Hopefully this will be added before you need something like this again. :-)
  19. You're welcome Tamsin and Orso. Glad to help. Tamsin, I was thinking about adding the Fibonacci spiral to the plug-in as an option. I'll look into it as time permits. Orso, Thank you for explaining the installation procedure. That reminds me, I need to make a tool icon for the Plug-in. PS: Enjoy your trip to IT!
  20. Sorry folks. The Cafe Interior Demonstration YouTube link is no longer valid. I made some adjustments to the audio and thought I could swap the audio in YouTube (keeping the same link). It doesn't work that way so I had to upload it again at this link:
  21. One last version for now. The spiral now ends at the PIO's end point. PanzerCAD Spiral Logarithmic.zip
  22. Ok, Here it is in a linear PIO. download this, unzip it, and place the entire "PanzerCAD Spiral Logarithmic" folder in your VW plug-ins folder. Then add it to your workspace. It's still a work in progress and the code is unlocked. Play around with the settings in the Obj Info palette. You'll notice that the spiral does not extend to the length of the PIO's line length. I'd explain the parameters, but I'm really not sure yet how to. Im sure one of you math wizards out there can spiff this up a bit and explain it to us math challenged. Raymond, are you listening? ;-) PanzerCAD Spiral Logarithmic.zip Let me know what you think if you try it.
  23. I modified the script to increase the number of points along the spiral by 10 times. This makes for a much more correct spiral. If I have some time, I may improve it and put it in a linear plug-in object. Until then, this may help you: -------------------------------------------- PROCEDURE MAIN; CONST klength = 16.0; ktaper = 0.1; kangle = 10; VAR A, B : REAL; theta : LONGINT; r, x, y : REAL; BEGIN A := klength / Sqr( 1.0 + ktaper^2 - 2*ktaper*Cos(kangle) ); B := Ln( ktaper ) / kangle; OpenPoly; BeginPoly; FOR theta := 0 TO (3600) DO BEGIN r := A * Exp( B * theta/10 ); x := r * Cos( theta/10 ); y := r * Sin( theta/10 ); IF ( theta > 0 ) OR ( theta < 3600 ) THEN CurveTo( x, y ) ELSE AddPoint( x, y ); END; EndPoly; END; RUN(MAIN);
  24. Hi Sophie et al, Curiosity got the best of me and I found a code snip online. I ported this over to Vectorscript. You can play around with changing the three constants at the top (klength, ktaper,kangle ). While the results aren't perfect, I'm sure it could be improved. It currently creates a bezier curve to help smooth it out, but this may not give the correct size. If anyone would like to take a shot at improving this, please feel free. --------------------------------------- PROCEDURE MAIN; CONST klength = 16.0; ktaper = 0.1; kangle = 10; VAR A, B : REAL; theta : LONGINT; r, x, y : REAL; BEGIN A := klength / Sqr( 1.0 + ktaper^2 - 2*ktaper*Cos(kangle) ); B := Ln( ktaper ) / kangle; OpenPoly; BeginPoly; FOR theta := 0 TO (360) DO BEGIN r := A * Exp( B * theta ); x := r * Cos( theta ); y := r * Sin( theta ); IF ( theta > 0 ) OR ( theta < 360 ) THEN CurveTo( x, y ) ELSE AddPoint( x, y ); END; EndPoly; END; RUN(MAIN);
×
×
  • Create New...