Jump to content

Hannes

Member
  • Posts

    136
  • Joined

  • Last visited

Posts posted by Hannes

  1. Do you want to make a solid substraction of the two extrudes or should the resulting object look like a frame? Please can you explain a little more? If you could send me the whole code an maybe a sample file what you want to get as result i'd be glad to help you.

    Hannes

  2. quote:

    Jason Miller asked:... Am I able to access the parameters within this object without getting the variable names inside the script of the plug in object?

    Yes you are able to do this. Here is a example:

    Insert a Simple 'Window Object 2' into your drawing and run the attached Script.I assume you use VW 9? If not then tell me and i'll modify the script to work on a VW 8's PIO.

    Kind Regards,Hannes*********************************************Procedure ChangeParameter;{Example which gets and sets the Width parameter of aselected Simple Window 2.}

    VARh:Handle;Parametervalue:String;NewParametervalue:String;

    Beginh:=FSactLayer; {<<<handle to the Pluginobject}

    Parametervalue:=GetRField(h, 'Simple Window 2', 'Width'); {<<<get the width parameter. note thatyou have to use the native parametername, not the alternate. In this example: the Width parameter is shownin the Objectinfo as 'Unit Width' but the real parametername is 'width'. (look into the Plugin's Properties to find the proper names}

    AlrtDialog(Concat('the width of the simple Window is: ',parametervalue));

    NewParametervalue:=StrDialog('Set new width: ',Parametervalue);

    SetRField(h, 'Simple Window 2', 'Width', NewParametervalue);{<<<set the new value}

    SetClass(h,Getclass(h)); {<<<this is necessary to redraw the object after changing the parameter value}

    END;

    Run(ChangeParameter);

  3. Hello Jason,

    ***to read parameters:

    FUNCTION GetRField ( h :HANDLE; record :STRING; field :STRING ) :DYNARRAY[] of CHAR ;

    Description:Returns string description of a value in the specified record field.

    Parameters:h: Handle to object. record: Name of record format. field: Name of field to be queried.

    Result:Returns the field value as a variable length string.

    +++++++++++++++++++++++++++++++++++++++++++++To set parameters use

    PROCEDURE SetRField ( h :HANDLE; record :STRING; field :STRING; value :DYNARRAY[] of CHAR ) ;

    Let me know if you have any problem with this and i'll send you a example.

    [ 01-27-2002: Message edited by: Hannes ]

  4. quote:

    Originally posted by John P:
    You are quite right Hannes, I'm sorry I sent wrong script! This is the one which was playing up (any other ideas?) Thanks very much, John.

    Procedure CustTool;VAR Name:STRING;Result:BOOLEAN;BEGIN PushAttrs;ClearCavities;PenSize(7);PenPat(2);AddCavity(TRUE, 5.3937008", 1.4566929", 35);PenSize(7);PenPat(2);AddCavity(TRUE, -5.3937008", -1.4566929", 35);DoubLines(0"); {<<<set here your wall thickness, then it works.

    PenSize(7);PenPat(2);

    SetZVals(0", 0"); {<<<Attention, this line set's the layer's Z-values, in this case to zero.If you WANT to change the Layers Z-value trought this script then fill in the proper values, if not delete this line

    FillFore(255);FillBack(0);FillPat(1);PenFore(255);PenBack(0);PenPat(2);PenSize(7);PenPat(2);Marker(0, 0.125000, 15);

    NameClass('Walls');CallTool(-208);PopAttrs;END;Run(CustTool);

    Kind Regards,Hannes

    smile.gif" border="0

    [ 01-03-2002: Message edited by: Hannes ]

  5. Hello John,

    Maybe you'r wall tool wasn't active if you run the custom tool command.

    Your code includes this line:

    CallTool(-128);

    -128 is the tool constant for the 2d selector.If you change the number into

    CallTool(-208);

    your script will call the wall tool.

    I hope this helps.Kind regards,Hannes

    smile.gif" border="0

  6. hello,IMO it would be a great timesaver if VW would support doublecklick as usual in other window applications.

    *)i.e.: clicking a symbol twice should enter the symbol for editing (if in top plan> enter the 2d part, if in 3d view> enter the 3d part)

    *)doubleclicking a symbolname in the resource palette should bring up the edit symbol dialog.

    the same for groups: doubleclick a group will enter the group

    *)doubleclick a Extrude will enter the extrude.The same for path objects, sweeps, worksheets etc...*)doubleclick a polyline or polygon will change the cursor to edit mode and so on...;-)

    What do other users think about this?

    What about the ability to link Objects with scripts or Views?doubleclicking the object will run a script...

    Or/and maybe another field (or pane) in the Objectinfo with a Button 'run Object's script'?

    -Hannes wink.gif" border="0

    [ 12-28-2001: Message edited by: Hannes ]

  7. quote:

    Originally posted by jpolkcmpbl:
    Also, I cannot find or figure out how to import textures to my document. The manual refers to "opening a new file," but the process is not apparent to me.

    To import textures from other documents use theresource palette. There search for your file containing the textures, klick the 'enter' button on the top right and you'll see all Textures, symbols, hatches etc. listed which are part of this document. Select your texture(s) and klick the Import button.

    HTH, Hannes

  8. quote:

    Originally posted by newbarndesign:
    .......Will the (GetCustomObjectInfo) command return to the script and have the object redraw, If not what comand should I use?

    ThanksPhil Sacchitella

    Hi,Someone may correct me please if i am wrong, buti try to answer to your question;-)

    I don't believe that GetCustomObjectInfo will regenerate your PIO.

    Are you using VW 8? If i remember right PIO'sshould redraw automaticly if you make changings inthe object info palette, but there was a bug in VW 8...Try to get the PIO's class and then reset the class ( 'h' is the handle to the PIO itself), this will force a redraw of the PIO:

    StringVariable:=GetClass (h) ;

    SetClass(h, StringVariable);

    I hope it helps ( and i remember right wink.gif" border="0 )

    -Hannes

  9. quote:

    Originally posted by evb:
    Thank you, thank you....It was the 3D locus I was missing. The manual just said to select the object, never mentioning a locus. I knew it had to be something simple I just couldn't find for 2 days of frustration.

    You can use each 3d object, not only a locus, just select the object first bevore you open the create Animation window.

    -Hannes

    wink.gif" border="0

    [ 11-30-2001: Message edited by: Hannes ]

  10. quote:

    Originally posted by Archken:

    ....Perhaps extracting the secrets of our efficiency...

    This brings up a Question to me.

    Maybe it would be good to have the option to lock a file so that it

    is not modyfieable anymore. Makes sense?

    Would that be possible, maybe for VW 10?

    -Hannes

  11. This is a known bug. Andrew Bell from NNA told me that this might be fixed in the upcoming Version 9.5.

    Until that there are two solutions:

    convert the subtractions into a mesh

    or if you want to keep the solid substraction editable do following:

    In the edit texture dialog change the

    image size to 1. Now of course you have to scale up the texture in the object's texture mapping dialog to it's proper size.

    Not very elegant but works, at least here.

    -Hannes

  12. quote:

    Originally posted by MikeB:

    ....

    ....Has anyone else seen this problem?

    G4 733 382 Mb ram 150 Mb to VW 9.0.1/Rw 9.0.1

    Yep! same here on Win 2000, VW-RW 9.0.1

    Just today i wasted hours with this behaviour, i encountered following:

    This happens with solid substractions and sweeps. They won't receive any light except the >layer ambiente<.

    AFAIK it happens only with textures based on large images. Say you use a large image and set the texture size to maybe 1500 mm you will get this outcome.

    If you use the same texture and set the texture size to something about 10 ( i think the values alter with the size of the image)

    and scale up the Texture in the object's texture mapping dialog it renders right.

    This happend also in RW 8, i submitted the bug a while ago.

    Kind Regards,

    Hannes

  13. quote:

    Originally posted by Ves Mandaric:

    Originally posted by Hannes:

    I use dual Monitors with no problem here

    VW 9.0.0 on Win 2000

    How do you use dual monitors? I have 8.52 and that is imposible, better say useless. VW does not support Framing so you can not open multipple windows/views.

    That's right, VW does not support multiple views in several windows.

    A big wish!

    I move most of the tool palettes, the Objectinfo, attribute palette, resource palette and Object browser to the second monitor to clean up my main monitor.

    Win 2000 supports up to 10 monitors,

    you just need one grafic card for each monitor.

    Hannes

  14. quote:

    Originally posted by mbanvard:

    Hannes,

    I've gotten half way through your instructions. I can't figure out how to add the torus to my workspace. It is in the Plug-Ins directory, but now I'm stuck.

    - Michael.

    Michael,

    Open the Workspaceeditor, go to the Tools tab.

    At the left column search for 'Solids', expand it and klick on the desired icon.

    hold down your mouse and move the Icon to

    the desired tool palette on the right column.

    Close the Editor.

    I hope it's somehow understandable;-)

    Kind Regards, Hannes

  15. quote:

    Originally posted by jodawi:

    Use a locus and a circle to make a sweep, as described on page 7-18 of the VW User's Guide. (Not sure what page in VW Architect etc.)

    Yeah, or you use the 'Torus Object.vso', shipped with VW but not automaticly installed.

    Put it into your Plugins folder and add it to your workspace. This tool ( and some other 3d primitives) can be found in the

    Specialties folder in the VW directory.

    In VW 8 it's located in 'VectorWorks\ToolKit\Specialties\Goodies\3D Primitive Objects\Plug-ins',

    in VW 9 its

    '\VectorWorks 9\Resources\Samples\3D Primitive Objects'

    Hope it helps,

    Hannes

×
×
  • Create New...