Jump to content

Cmb

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Cmb

  • Rank
    Greenhorn

Personal Information

  • Location
    Belgium

Recent Profile Visitors

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

  1. Cmb

    How to group Undo Events ?

    So regarding this specific case, my problem was relative to VCOMImpl<IProviderShapePane> ::OnWidgetChange(SShapePaneWidgetOnWidgetChange& data, bool& outNeedReset) I realised that outNeedReset beeing "true" was the cause of a second separated Undo event. Setting this boolean to "false" and doing the reset of the object myself permitted to Undo all I wanted with only one CTRL+Z. For other cases I used the various swap commands as you told me and it worked. Thank you
  2. Cmb

    How to group Undo Events ?

    Hi, I am struggling with a specific case that was working fine in VectorScript, but not with the SDK. Basically, I have a PIO which is creating multiple objects as kids with CreateCustomObject(), + changing one of its parameter with setParamString. This is triggered from a button in its pane. The expected behavior is to undo all of this with CTRL+Z. But I have to press CTRL+Z a first time and that will cancel the objects creation, and then CTRL+Z a second time to get the changed parameter back. It's not the case in VectorScript with pretty much the same code. I tried to use the Undo Events primitives of the SDK but don't achieved what I wanted, maybe I was doing it wrong. Is there a way to group these undo 'events' together ? Thanks,
  3. Cmb

    Get the program state via SDK ?

    Thanks to both of you for your answers. For the moment, I have no success reading minidump files. I'll try to know more about pdb and symbols to get something.
  4. Cmb

    Get the program state via SDK ?

    Hello, I need to get the state of the execution of VW after loading my plugins. (if it crashed or executed well), when I build in Release. Is there a way to know when the program exits ? Or it 's impossible to catch this event via the SDK ? Because of the COM mechanisms, the entry point is called multiple times and i'm not sure if we can know when it closes. An idea was to try catch(...) all, but the sdk isn't using exceptions neither my plugins. Without writing own exceptions at plugins level, meybe there is another way to get a trace slighty like a debugger would do, but in Release ? (with .pdb, or crashdumpfile ? But how in the context of the SDK..) Thank you very much for helping,
  5. Cmb

    Setting text size in Dimension object?

    If you look at the drawing Tree or try to ungroup your Dimension object (CTRL + U), you will find out that there are Lines Nodes and a Text Node : You can then easily change the charSize of the Text Object with for example : virtual void ISDK::SetTextSize(MCObjectHandle textBlock, Sint32 firstChar, Sint32 numChars, WorldCoord charSize); Best,
  6. Cmb

    Associations equivalent in C++

    Hello ! I'd like to know if there is an equivalent as this method in Vectorscript in the SDK : AddAssociation(obj1, kOnDeleteDelete, obj2); or what is the best way to have the same behavior, as I want to delete a child when an Object is removed. I also tried to catch the event in VWParametric_EventSink, but can't find a virtual for that. Is there a way to do this without having to override : virtual Sint32 VCOM_CALLTYPE Execute(ParametricMessage* message); Thanks

 

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.

×