Jump to content

Alexandre Villares

Member
  • Posts

    253
  • Joined

  • Last visited

Posts posted by Alexandre Villares

  1. Wop! I guess I understand your trouble, but there is some clarification needed here:

    Symbols are fully editable: Menu Organize > Edit Symbol, and change whatever you want.

    Plug-in Objects (PIOs) are those pre-made parametric objects (red on the Object Browser from VW9 onwards).

    Those can be 'unmade', opened up and altered, by the ungroup command. Note that they will no longer be parametric objects and you only get the 2D or 3D parts at a time, so be sure to duplicate them an ungroup first on the top/plan view and then on some 3D view. You can then make a full 2D/3D common (editable) symbol out of the remaining objects.

    But also you can make your own PIOs if you take the trouble of learning VectorScript the programming language that comes embeded on VW.

    [ 07-18-2002: Message edited by: Alexandre B A Villares ]

  2. Hi Chris,

    What Matthew suggested was to create a 'standards' file...

    1. Take the file with the classes you want and put it in the folder called Standards, inside your VW folder (to rename it .sta is optional, as far as I know)

    2. On the document you want the classes imported to, open the Classes... panel and choose New...

    3. Instead of writing a class name as usual, choose the second radio button on this small dialog, the pop-up near it should show the file with the classes you want (it will show the files on the Standards folder).

    4. You can now import classes 'en masse' if you want, by control/comand or shift-selecting them on the list under the pop-up.

    HTH

    [ 07-16-2002: Message edited by: Alexandre B A Villares ]

  3. The example is great, but there is no documentation on how the image resource files were created.

    On a Mac I could examine the image resource example using Resedit, but on the PC [...] I have no idea on how to proceed.

    [uPDATE: Thanks for the help, Fuge!]

    [ 07-14-2002: Message edited by: Alexandre B A Villares ]

  4. The square tipped pens used to annoy me a lot, then I found that if I print to a PDF (Adobe Acrobat) file the problem goes away.

    Sure it would be nice to see the rounded pens on the Mac screen, but at least it prints fine. I'm much happier now.

    (I mean, printed arcs and sloped lines look OK and Brazil won the World Cup).

    wink.gif" border="0 Alexandre

    [ 06-30-2002: Message edited by: Alexandre B A Villares ]

  5. I can't make CallTool(-200) nor SetTool work (i.e. call the Text Tool) from inside a plug-in tool (as oposed to a plug-in menu command).

    It seems to change tools while the mouse is pressed but it becomes worthless as a text tool.

    Can anyone please confirm there is something wrong?

    [ 06-27-2002: Message edited by: Alexandre B A Villares ]

  6. Help!

    Is it possible to Set Attribute Defaults with VS?

    I would like to make a script that sets the 5 Preferred Line Thicknesses, but I'm afraid it's some sort of application preference I can't reach by means of VS.

    Wish: Why don't templates keep the preferred line thicknesses?

  7. Sean Flaherty and Robert Anderson from NNA talk about AEC CAD data exchange at:http://www.cadalyst.com/features/1201aecinterop/nemet.htm

    quote:

    Concentrating on two-way and round-trip translation of the entire drawing should not be the main focus. Although this goal may be an intermediate target, it may never reach the levels that it promises. I liken it to asking someone to translate a poem to another language and make sure it still rhymes. Instead, the focus should be on smaller, more achievable goals?for example, the exchange of prebuilt objects from building component manufacturers.

    Then, how about GDL? Are there any plans of including GDL support?(GDL objects now can be shown and developed directly in a web browser: http://www.GDLalliance.com/Tools/3nf.html)

    rgds,

    Alexandre

    [ 06-23-2002: Message edited by: Alexandre B A Villares ]

  8. OK, the trick is, add this to your plug-in:

    ALHand:=ActLayer; IF GetCustomObjectInfo(objectName, objectHand, recordHand, wallHand) THEN BEGIN IF GetLayer(objectHand)<>NIL THEN BEGIN Layer(GetLName(GetLayer(objectHand))); END; END;

    [... your plug-in goes here...]

    Layer(GetLName(ALHand));

    The point is: have the layer made active at the time the plug-in is redrawn.

  9. Function ClassExists(ClassName : STRING) : BOOLEAN;BEGIN h1 := Nil; h1 := GetObject(ClassName); IF (h1 <> Nil) & (GetType(h1) = 94) THEN ClassExists := True ELSE ClassExists := False;END;

    []sAlexandre

  10. quote:

    Originally posted by Fuge:
    Try using SetTool(-200); I think that works.Dave

    Exactement... It calls the text tool while the mouse button is pressed, but it becomes useless, i.e. you can't write any text.

    Try it yourself (inside a plug-in tool). Is this some known bug?

    [ 06-09-2002: Message edited by: Alexandre B A Villares ]

  11. That is a very good question indeed!

    If I uderstand it correctly:

    Is it possible to change the value-list of a PIO pop-up parameter from inside it?

    Note: To chage a parameter's value is easy, what Paolo wants is to change the options that will appear on the pop-up at the Obj. Info Palette...

    rgds,Alexandre

  12. Hey, you already took an extra effort to put this functionality on the Windows version(where it was inexistent on the platform), sowhy not consider doing the same to the MacOS X where it is currently unavailable (instead of waiting Apple to fix it) ?

    On the other hand, adding a Zoom Buttom to the palettes window code would (so I was told) allow some third-party shareware to window-shade them. It would be a quick-fix avoiding the rewriting of this so much missed window-shade.

    The point is we need window-shade badly.

    rgds,Alexandre

  13. This is an old one:I wish the 3D Section Tool would produce "capped" or "closed" sectioned objects (just like the new 3D Power Pack surface section does).

    And a new one:I wish the line objects created by the 2D Section Tool would inherit their class from the originally sectioned objects.

    [ 05-23-2002: Message edited by: Alexandre B A Villares ]

  14. I'm afraid I didn't understand exactly what you want.

    1- If you want to move a selected object to some layer of your choice, then you can use the Object Information Palette (there is a layer pop-up on it).

    2- If you want to make active the layer on which some selected object is placed (assuming you have "Show, Snap and Modify Others" for layers) , that can be done by a script.

    [ 05-19-2002: Message edited by: Alexandre B A Villares ]

  15. There is already a 'date/time stamp' plug-in, the only thing is you have to manually reset it after the first insertion (for it to display the current date & time).

    Use the workspace editor to add it to a palette, this 'date stamp' can be found under the 'drafting tools' category of the 'tools' tab.

    [ 05-16-2002: Message edited by: Alexandre B A Villares ]

  16. Hi Petri,

    I understand your frustration with the board, it is not very practical for serious discussions, but I think it can be improved and that it should exist alongside the mail lists anyway.

    The point beeing that the board is more open to newcomers, as you don't have to sign up you can just walk in and have a look.

    It can also work better as a knowledge base, list archives are usually much harder to search or browse by thread.

  17. Put in your Plug-In Objects some code to re-scale acording to the layer scale (they'll become scale independent PIug-In Objects) , then you can just 'wake them up' (force a redraw / reset) like this:

    {--------------}Procedure WakeUpPIOs; Procedure WakeItUp( H : Handle); BEGIN SetClass(H,getclass(H)); END;

    BEGIN ForEachObject(WakeItUp,((T=PlugInObject))); END;

    Run(WakeUpPIOs);{--------------}PS: Be sure that your PIOs will make active their own layer as they draw themselves so that any text object will get the right size when they are reset.

×
×
  • Create New...