Jump to content

Alexandre Villares

Member
  • Posts

    253
  • Joined

  • Last visited

Posts posted by Alexandre Villares

  1. code:

    	Procedure Test;

    VAR

    H:HANDLE;

    BEGIN

    Rect(0,0,100m,100m);

    H:=CreateTaperedExtrude(LNewObj, 0, 100m);

    END;

    Run(Test);
    [/code]

    Can anyone tell me why this code draws a Tapered Extrude 0,10m (10cm) thick instead of 100m thick?

    It seems to always draw it 1000 times smaller, did I do something wrong?

    [ 02-07-2005, 03:00 PM: Message edited by: Alexandre B A Villares ]

  2. If you want to clip a Floor (or Column):

    1- edit menu > cut the smaller retangle

    2- enter the floor (double click it)

    3- edit menu > paste in place

    4- clip surface

    5- exit the floor ([done] at the top right of the window)

    [ 01-13-2005, 04:30 PM: Message edited by: Alexandre B A Villares ]

  3. Cheers Alan,

    I'm not sure I got your subtraction idea right, but I'll list the things I do:

    1A) Sometimes I create 2 floors inside the external walls and a "poly-offset-inside-n-clipped" floor (just under the external walls).

    1B) I can also create the floors inside and increase the external walls' height

    2) Other times I make a sort of 3D poly cap to hide my floors on the outside.

    3) And yet another solution is the slab object at www.vectordepot.com (it has 3 classes: for the top, bottom and siding faces).

    [ 12-19-2004, 12:02 PM: Message edited by: Alexandre B A Villares ]

  4. Hi Alan,

    This is very useful when creating a quick 3D model, you can draw the external walls inside the floor poly, have all the internal and external walls the same height (this way the floor sides show outside the building).

    Such a many-classed/many-textured floor object would then solve the ceiling, parquet and look like an external wall on the outside.

  5. 1) I wish I could change the Viewport Crop pen and fill attributes both from outside and inside the crop editing mode. As it is now one can change the Viewport border/pen only when editing the Crop Object, and the background/fill only when outside it

    2) I wish that when the Convert to Lines or Convert Copy to Lines command is applied to a viewport the resulting lines were put inside the annotation part of the Viewport thus enabling one to dimension them correctly. As it is now the results are scaled to retain size appearence at the 1:1 Sheet Layer.

    3) I wish that when inapropriate objects are selected in a Sheet Layer while creating a new Viewport they should simply be ignored. Otherwise, make the command unavailable if there is such a selection.

    4) I wish that the last scale value used should be proposed when creating a new Viewport directly in a Sheet Layer.

    5) I wish that when double-clicking a viewport, keyboard modifier keys would take one directly to the Annotation, Crop or Design Layer editing behavior. Something like: Shift+double-click -> Annotation; Mac-Command/PC-Alt+double-click->Crop; Both modifiers together would get one the first visible Design Layer or perhaps bring the Viewport editing panel with the third radio button already selected.

    Off Topic P.S.: Similar modifier key shortcuts could be added to Extrude Along Path objects and Path PIOs.

    Off Topic P.P.S.: I wish modifier keys would toggle class and layer visibility when choosing them from the active class & activel layer menus.

    [ 11-06-2004, 12:51 PM: Message edited by: Alexandre B A Villares ]

  6. Hi Peter,

    I stand corrected! SetTool(-200) seems to work fine.

    But, I couldn't make CallTool(-200) work the way I expected in a Custom Tool Plug-in (and the Custom Tool/Attribute panel still disables the check box).

    cheers,

    Alexandre

  7. quote:

    Originally posted by Clay:

    I am using VW Architect 10 for MAC OSX.

    The Custom Tool commands work, but not for text. It neither selects the tool, nor provides the styles selected. Even when I select the text tool before selecting the custom tool command it does not work.

    What can be done?

    Hi Clay and Peter,

    Peter, Custom Tool/Attributes can call tools for you, it just doesn?t work with the Text Tool.

    Text styles and font/size seem to work OK for me as Custom Tool/A scripts, but I have noticed the Text Tool issue and complained to no avail.

    It seems to be a bug/limitation of the VectorScript CallTool() and SetTool() procedures.{Please see how I changed my mind at the end of this thread}

    Inside scripts the procedures, with the proper selector code for the Text Tool, do not work as expected {Please see how I changed my mind at the end of this thread} and to the common user interface it reflects as a grayed checkbox at the Custom Tool/Attributes command panel.

    best regards,

    Alexandre

    [ 11-06-2004, 01:55 PM: Message edited by: Alexandre B A Villares ]

  8. quote:

    Originally posted by carch:

    Can you take a vectorscript 9.5 or 10 and convert it to vectorscript 11? If so, how?

    thanks

    chris

    Probably yes.

    1- Document scripts (you double click them in a command palette inside your vectorworks file). Just open your file on VW 11 and see if using them generates any errors.

    2- Plug-in tools, objects (you pick them from a palette) or command menus. Copy the relevant files to the VW 11 plug-ins folder, add them to a workspace and see if using them generates any errors.

    Errors, if any, are usually due to functions/procedures that became obsolete but those may be replaced with a bit of coding work if the script is unlocked (if you can actually view and edit the code).

    [ 11-15-2004, 04:07 PM: Message edited by: Alexandre B A Villares ]

  9. quote:

    Originally posted by hong:

    O.K. I am writing a script for a plug-in object with a control point in it. I can move a control point by 'SetRfield' to the place where I want when the script is executed. However this control point is locked, that is I can not drag around anymore. Is there a way to release this?

    What I am trying to do is somewhat similiar to the tag in 'space' tool.

    Hi,

    If you want just to set a default initial value, use the parameter default field at the parameters panel inside the create plug-in panel.

    Otherwise (if you depend on a calculation to set the control point) you have to create a condition so the SetRField wont be done at every objet regeneration/redraw.

    For example you could use something like IsNewCustomObject() to set the control point only when the object is first inserted.

    IF GetCustomObjectInfo(objectName, objectHand, recordHand, wallHand) AND IsNewCustomObject(objectName) THEN

    HTH

    Alexandre

    PS: Just curious, what is the plug-in you are creating?

  10. 1. To make the VW interface even easier and more consistent, when a Symbol in Wall is selected the move command (CTRL+M) should bring up not the standard Move Panel, but the Position Panel that can be found at the OIP.

    2. The Position Panel could afford a face-lift...

    How about a nicer graphic scheme, or some on drawing green highlights like the parametric constraint editon panel tricks? How about choosing different points at the symbol to measure the insertion distance (jamb face, center or original insertion point like the symbol insertion tool)?

  11. quote:

    Originally posted by TN:

    Is it possible to edit (re-initialize) the value of the parameter from a script??

    Yes.

    SetRField(PIObjectHandle,Getname(PIORecordHandle),ParameterNameString,Concat(NewParValue));

  12. quote:

    Originally posted by a17178:

    Sorry, specifically around windows and doors.

    Select your model and try the tool menu > convert copy to lines.

    You'll get a group of lines that can be edited.

    BTW Hidden line Rendering does not require a RenderWorks licence, it's a standard VW rendering.

    [ 08-03-2004, 08:58 PM: Message edited by: Alexandre B A Villares ]

  13. 1. Select the offset tool, create the first offset.

    2. Press and hold the space bar and X key to get a temporary selection tool.

    3. Release those keys and you are right back to the offset tool.

    ---

    PS: Please, Please, Please NNA!

    Make the offset tool create a polyline from a polyline, even if it can only be implemented when you have arc vertices!

    [ 08-03-2004, 10:50 AM: Message edited by: Alexandre B A Villares ]

  14. quote:

    Originally posted by dave96:

    At the minimum, the Vectorscript Editor needs colour. If not, make the plug-in file a simple text file capable of being opened directly by BBEdit.

    A tutorial on how to structure large scripts would be a great help to amateur scripters like me. Although the basic information is available it is extremely difficult to start building up know-how and good practice if you have no technical background.

    Dave,

    Have a look at the VS-List archive on how to edit includes...

  15. When one applies the Compose command to the ungrouped product of the Cut 2D Section command it works great most of the time (sometimes a beam or wall section will get composed together with a floor-slab section).

    I wish the Cut 2D Section command would incorporate an internal compose, generating polygons instead of lines as it's product.

  16. Please add to the wish list:

    - Using the active class menu holding a modifier key (cntrl/command or alt/option) could change the class visibility (make it a class visible/invisible toggle).

    - The 2D Mirror tool should cast a doted ghost preview as the 2D Rotate tool does.

    - The 2D Rotate tool should have a Rotate & Duplicate mode as the 2D Mirror tool does.

    - The Flyover tool when on the 'Center of Selected Objects mode' should revert automatically to 'Center of Ground Plane Mode' if you try to use it when no object is select.

    - There could be a preference to make the 3rd modes of fillet and chamfer tools the default ones.

    - The new Layer and Class visibility panels should be resisable.(They could be non-modal ? is that the term ? ? that is, hang around like the Obj. Info Palette)

    - Set 3D View instead of (or in addition to) Rotate 3D View for ViewPort view editing.

    [ 07-14-2004, 08:14 PM: Message edited by: Alexandre B A Villares ]

  17. I use this a lot when using the mirror, rotate and offset tools when I need the selection tool to edit various objects:

    0- Select an object to edit

    1- Select the offset (or mirror/rotate) tool

    2- Do what you want to the selected object

    3- Press and hold the space bar, press and hold X

    4- Select the next object to edit.

    5- release the space bar and the X key.

    6- You're back to the offset (or mirror/rotate) tool(go to step 2)

×
×
  • Create New...