Jump to content

Stefan Bender

Member
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Stefan Bender

  • Rank
    Greenhorn

Personal Information

  • Location
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Stefan Bender

    Import Symbol during a Tool's DoModeEvent throws "Beta Undo Alert 9"

    Hi Matthias, did you start an undo event before importing the symbol? This is absolutely necessary if you do something that affects the undo table such as importing a new object into the drawing or modifying the name lists. Hth, Stefan
  2. Stefan Bender

    Double Clicking on PIO

    Did not set properties kObjXPropSpecialEdit and / or kObjXPropHasUIOverride in your OnInitXProperties handler?
  3. Stefan Bender

    Double Clicking on PIO

    Hi Nebeor, This class should exist in all SDK versions since several years. I'm using VW 2018 and VW 2019 (probably not released yet) SDK. >>>Why does the name of the class starts with 'XXX' and not 'VW'? There's no actual class "XXXX...". XXX means just the name of the plug-in, as you have to derive your own class "XXX.." from the base VW class and overload some of the virtual functions. I don't know if there's a documentation, but you may wish to hava a look at some of the sample plug-ins. Regards, Stefan Bender
  4. Stefan Bender

    Double Clicking on PIO

    This class should be a lot older than Vectorworks 2015. It's in VWFC/PluginSupport/VWExtensionParametric.h. Maybe your plug-ins are not using this class and are based on some older classes and structures. Best regards, Stefan Bender
  5. Stefan Bender

    Double Clicking on PIO

    Hi Nebeor, you need to overload XXXRegenSink::OnSpedialEditID(). Hth, Stefan Bender
  6. Stefan Bender

    Assign class to object, but not to subobjects?

    Is there a way to assign a class to a Vectorworks object WITHOUT changing the class of its subobjects? Afaik SetClassID also changes the subobject's classes which is not wanted and causes lots of problems and delays in some situations. Thanks for any help, Stefan Bender
  7. Stefan Bender

    How to add static texts to OIP?

    Joshua and Vlado, thanks for your help! I would have preferred to set the strings in the ::Update() function, but at least it works now. Regards, Stefan Bender
  8. Stefan Bender

    How to add static texts to OIP?

    Dear developers, for a new task I need to add a pair of (name, value) to the OIP of a PIO (see below). The texts need to be static and disabled. Sounds simple, but looking at the widget utility functions in the SDK I can not see how to do that. These functions assume that the values are part of the PIO's record format. But I need to write texts that are arbitrary values, no record fields. Currently I'm trying to define the widgets with type kWidgetStaticTextParam, but then the text at the right hand side of the OIP is empty and I don't know how to set it. SWidgetDefinition only contains a member variable fWidgetText (which would be the left one), but I can't see how to set the right hand value. Which widget type do I need to use and how can I set left and right hand text (as redlined in attached image) without having to "link" a record field to the widget? Thanks for any help, Stefan Bender
  9. Stefan Bender

    How to set the default class of a custom plug-in object?

    Hi Nebeor, afaik there's no way to set the default class in the plug-in definition. You can hardly define a default class beside "None" and "Dimension" as you don't know in advance which classes actually exist when the user creates a PIO. You may need to check all places in your code where you create your PIO and set the default class before calling CreateCustomObject. You may also try to change the class within the regeneration code when a PIO is regenerated for the first time, but beware of infinite recursion (setting the class may trigger another regeneration...). Hth, Stefan Bender

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×