Jump to content

Miguel Barrera

Member
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Miguel Barrera

  1. Rotate 3D works only on selected objects so you need to deselect all other objects before creating the 3D object. It is usually better to use Set3DRot because it targets a specific object through its handle, which you can get with LNewObj. http://developer.vectorworks.net/index.php/VS:Set3DRot
  2. When the user moves the first control point it will trigger the parameter change event. In turn you can then set the location of the second control point and the text with SetRField.
  3. The following link shows how to monitor parameter changes: State notifications and the type of notification you want is: kParameterChangedReset (3)-- Parameter has been changed.
  4. Whether you decide to buy a Mac or PC you can run older versions of Windows (2K,XP,etc) with Oracle VirtualBox which is free. And just like with any other virtual OS app, you will need a copy of the OS that you want to install. I have windows 7 as the host OS and 2 virtual machines running 2K and XP and have not had any problems with the software. Since you can assign the amount of memory and storage, you should not have any problems running older software.
  5. The tilt should be the angle formed by the distance and elevation difference between the objects VAR x1,y1,z1,x2,y2,z2,dist,tilt: REAL; Vxy,Vz: VECTOR; The distance using vector notation in the x-y plane: Vxy.x:= x2-x1; Vxy.y:= y2-y1; Vxy.z:= 0; dist:= Norm(Vxy); And the tilt angle can be calculated from the elevation view: Vz.x:= dist; Vz.y:= z2-z1; Vz.z:= 0; tilt:= Vec2Ang(Vz);
  6. Most likely is that in the statement ForEachObjectInLayer(Set_JN_A, 2, 0, 0); it is only picking up primitive objects (text, line, rect, etc). Since a callout is a plug-in (or group/container), you should try changing the criteria to: ForEachObjectInLayer(Set_JN_A, 2, 1, 0); or ForEachObjectInLayer(Set_JN_A, 2, 2, 0);
  7. It should be in the user's directory if you add your own notes.
  8. You can create a viewport without any layers, set the scale for the viewport and insert the symbol in the Annotation Layer of the viewport.
  9. I do not see this behavior as any changes are run immediately. The only difference I see is that I am still running windows 7. The "VS Compiler Mode" is still available but I do not know if this command applies to all scripts now or just VS as the label suggests.
  10. Add the search path to the module by clicking on the menu item "Tools->Plug-ins->Script Options". This will open a dialog to add PYTHONPATH variables.
  11. It is possible that you are missing the Hyperlink CW.qtr (quicktime resource) file. As the name implies it is a link to a view, sheet, web page or document/folder.
  12. I think the best approach for what you want is to have two different modes for modifying the wall ends. One will just pick the end of the selected wall and the second mode will pick the junction (vertex) of all the walls ending at the same point. For example in my line of work, I have conduits that terminate at a junction box. If I select the conduit, I can change the end of the conduit only but if I select and drag the box to a new location, all the ends of the linked conduits move with the box also. Not really. They can keep the association as you modify a set of walls because the area inside the walls is still an open polygon/polyline. You also modify one wall at a time, so the Space object can be modified on each change.
  13. I wonder if this has anything to do with the OS or the data being processed. I have done dtm with 10K + points and have never crashed VW or been that slow as it typically takes less than a minute. I create a dtm exclusively with 3D points from a survey file and 3D polygons for vertical boundaries such as curbs or walls. The only hiccups I have ever experienced are when the data contains duplicate points and the dtm does not complete until I remove the bad data.
  14. For simplicity in the programming it is best to keep it the way it is so that individual wall sections can have different shapes in elevation. Otherwise, keeping track of every segment will be more complicated and then you are going to complain that it is too buggy. To fix the delinked Spaces, all they have to do is, whenever a wall is modified, check for Spaces in the area and modify them also accordingly.
  15. This is the page link to VS sample code. Scroll down & look for the point object plug-in example. VS sample code There is a also a vectorworks help section that explains vectorscript and object plug-ins. The answer to the second question is that plug-ins created by NAV are encrypted so they cannot be modified.
  16. Yes, it can be done and what you require is defined as a plug-in object. All objects such as doors, windows, etc., are plug-ins that are programmed to change based on the user input in the object info palette (OIP). The parameters in the OIP are actually fields of the record attached to the object. However, to create the object you would need to program it with a script. A stud should be fairly simple to program because the geometry is not as complex as other objects.
  17. For windows I use Process Explorer, which can be downloaded from www.filehippo.com Process Explorer web page
  18. I still have VW2008 installed in my computer and the help files, which are in the VWHelp folder, are browser based as you described. In this folder, there should be a file index.html. I opened this file and it does show the self contained help system. I should note that the browser asks whether I want to open blocked content before opening so your problem might be with the browser restrictions.
  19. If you want to preserve the original view angle then it can only be done with a pio. However, if you want the text to be readable when the angle is more than 90 degrees, then you can check the option "Adjust flipped text" in the VW preferences, Display panel.
  20. Yes to all the above but my only question would be is why the need to create a symbol since a pio in many respects behaves like a symbol.
  21. Whether the pio is event enabled or not, you can use these commands, which date back before event 41: SetParameterVisibility & EnableParameter If you do not want the parameter to show at all in the new pio dialog then prefix the parameter name with 2 underscores, as in __ParameterName. If you want to show it at any other time then set SetParameterVisibility to true.
  22. I say it may not be possible because I have not tried it. By definition an extrude will have the ends squared and you will need to miter the ends somehow. There is a possibility that if you can create a closed square loop for the path, the ends may get miter.
  23. For an explanation of the event loop in VS: VS event programming To find what type of event was invoked: Parametric State Notifications
  24. You can also use the shortcut symbols | and &. In your case, the code would be IF CkCnt | CkAll THEN ....
  25. My suggestion would be to draw what you want manually & export it as a vectorscript. This will give you at least, a clue of how to do it in code. The EAP may not work to draw the corners correctly.
×
×
  • Create New...