Jump to content

Stefan Bender

  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Stefan Bender

  • Rank

Personal Information

  • Location

Recent Profile Visitors

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

  1. Stefan Bender

    SDK: Eyedropper support of PIOs - How?

    How can PIOs know the current settings of the eyedropper tool so they can support the tool? I see two functions // Eyedropper notifies that it is going to put the record 'hObjRecordCopy' as record for the current parametric object // In this event the object can alter the copy to ensure correct data transfer (the data has already been copied to the record) // NOTE! This object's record is still in place when this event is called virtual void OnEyedropperPrepareCopy(MCObjectHandle hObjRecordCopy); // Eyedropper notification that has finished with copying this object virtual void OnEyedropperAfterCopy(MCObjectHandle srcObject); in VWParametricEventSink that allow the PIOs to do something before and after copying, but how can the PIOs know which of the options of the eyedropper tool are set? Imho some data type "EyedropperToolPreferences" should be passed to these functions so the PIOs can react accordingly. Or is there another way for the PIOs to support the eyedropper tool? Thanks for any help, Stefan Bender
  2. Stefan Bender

    VW 2020 Stait tool font type

    Thanks a lot for finding this! It is fixed in CL 510756 / SP1.
  3. Stefan Bender

    Localized name of plug-in?

    Hi Joshua, thanks for your reply. But the problem is to get the localized name (title) if I only have the universal name but no other information such as location of string "resources".
  4. Stefan Bender

    How to access current workspace?

    Hi all, I'm trying to traverse the current workspace to collect information about the tools and menu items. Unfortunately, I have not yet found a way to do so. I tried using IWorkspaceFile interface, but all attempts failed. I tried VCOMPtr<VectorWorks::Workspaces::IWorkspaceFile> pwf(VectorWorks::Workspaces::IID_WorkspaceFile); TXString workspace_name; gSDK->GetCurrentWorkspaceFile(workspace_name); VCOMError e_open = pwf->Open(workspace_name,fsRdPerm); but e_open returned 1 and successive calls trying to access the menu bar also didn't work (null pointer returned by IWorkspaceFile::GetMenuBar). What mistake did I make? How can I get access to the current workspace? Thanks for any help, Stefan Bender
  5. Stefan Bender

    Localized name of plug-in?

    I meant the tool resp. menu title in STooldef and SMenuDef structures.
  6. Stefan Bender

    Localized name of plug-in?

    Hi there, how can I find out the localized name of a plug-in (not the one that is currently running) if I only have its universal name? There is an SDK function GetLocalizedPluginName but it is faulty and just returning the universal name. Thanks for any help!
  7. Stefan Bender

    Collecting an additional point after double-click

    I think you should do nothing in HandleComplete() and make GetStatus() return gSDK->OnePointToolStatus() so you can do your stuff the next time HandleComplete() is called.
  8. Dear developers, have any of you ever used VWWallObj::InsertNewComponent or ISDK::InsertNewComponentN? I'm currently trying to "copy" the cavities of an existing wall that has 3 cavities (with a total width of 32 cm) to another wall with no cavities but a width of 45 cm. I'm adding 3 cavities/components seemingly sucessfully to the target (after reading them from the "source" wall by VWWallObj::GetComponentInfo), but when I analyze the "target" wall, all three cavities have a width of 0 and the overall width of the target wall is 0. The expected and required result is that the "target wall" has the same components and the same overall width as the source wall afterwards. I assume that the problem may be related to the fact that the target wall had no cavities before this. But I couldn't find an object variable or member function of VWWallObj to tell the wall that its width is defined by components and not by "width". Is there something wrong with my workflow? What can I do to make the target wall "accept" the actual widths of the cavities? Thanks for any help, Stefan Bender
  9. Dear developers, what does the second parameter "foldersAreCategories" mean? I tried either value and don't see any difference. What is this parameter used for? I'm asking because in VW 2019 we have serious problems with the resource browser control in dialogs. Symbols in subfolders do not show up, and clicking on names of subfolders causes flickering and garbage to be drawn (I'm about to write a bug report about that, but it would help to know what this parameter is meant for). Thanks for any help, Stefan Bender
  10. Stefan Bender

    [C++] Unique Identifier for Objects

    Creating a UUID and storing it in a hidden record format won't work. If a user or an SDK routine duplicates the object, the record of the duplicate will have the same UUID than the record of the original.
  11. 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
  12. Stefan Bender

    Double Clicking on PIO

    Did not set properties kObjXPropSpecialEdit and / or kObjXPropHasUIOverride in your OnInitXProperties handler?
  13. 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
  14. 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
  15. Stefan Bender

    Double Clicking on PIO

    Hi Nebeor, you need to overload XXXRegenSink::OnSpedialEditID(). 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.