Support Board
Date/Time: Wed, 05 Mar 2025 19:26:48 +0000
Post From: Problems with Drawing Tools
[2022-01-06 15:50:14] |
Sierra123 - Posts: 27 |
Re Question #1 response : Yes, when creating the drawing, I initially set the BeginDateTime anchor using the ASCIL methods SetDate and SetTime. Upon updating the Drawing to Hide it, I first retrieve the Drawing, then with the returned tool settings, I simply modify the Hide setting and resubmit, as follows (error checking removed below for simplicity). int setHideShow(int lineNumber, int hide) { s_UseTool Tool; sc.GetUserDrawnDrawingByLineNumber(0, lineNumber, Tool); if (hide == 1) Tool.HideDrawing = 1; else Tool.HideDrawing = 0; return sc.UseTool(Tool); } I can try to see if your suggestion update via relocating the drawing will affect the BeginDateTime after submitting the update. It is a nice idea to try, but it will require me to persist the BeginValue for every drawing that I want to Hide and then Show later, which is adding a level of complexity as a workaround -- or -- I could try to see if setting the Value to a negative number will work, so I could change a 4700 to -4700, then I wouldn't have to persist the value, I could just multiply it by -1. [Potential workaround, thanks!] But wrt the proper solution, When I use the Hide/Show checkbox in the Drawing Properties dialog box, I don't have this problem. That's why I am thinking that there is another setting within the Tool that I should be able to change within ASCIL calls such that the Hide should work properly. -- Or is this expected behavior, or a bug in the ASCIL interface that I have to workaround? Thanks!! Date Time Of Last Edit: 2022-01-06 16:59:10
|