Sam Jones Posted February 1, 2020 Share Posted February 1, 2020 Plug-ins that worked fine in 2019 are now having a lot of problems updating the OIP. Path objects created in a new document that have a highly formatted OIP do not show any of the indents. If I open or activate another document and return to the new document the OIP displays correctly. Selection Plug-ins that select by field criteria do not display the correct field values or the correct number of objects that are selected. If I, as above, I open or activate another document and return the OIP displays correctly. Is there some new missing command or operation that I'm missing ? Quote Link to comment
Nicolas Goutte Posted February 3, 2020 Share Posted February 3, 2020 (edited) Is the "new" document completely empty or has it already a format record for the PIO? (We had similar problems, using the C++-SDK. In old documents, the indentation did not show up, only in new documents.) Edited February 3, 2020 by Nicolas Goutte Quote Link to comment
Sam Jones Posted February 4, 2020 Author Share Posted February 4, 2020 When I open a new document and draw the cable path (the PIO), the indentation does not show up until I open or activate another document. Quote Link to comment
Nicolas Goutte Posted February 4, 2020 Share Posted February 4, 2020 8 hours ago, Sam Jones said: When I open a new document and draw the cable path (the PIO), the indentation does not show up until I open or activate another document. OK, then I re-phrase what I have meant: does it happen with any kind of template documents or only with certain ones? Quote Link to comment
Sam Jones Posted February 4, 2020 Author Share Posted February 4, 2020 It happens with every document, old or new, template or not, the first time it is opened on the first time a PIO instance is created or selected. Quote Link to comment
Nicolas Goutte Posted February 4, 2020 Share Posted February 4, 2020 Sorry, then I cannot help, as apparently the problem is something else as the one we had. Quote Link to comment
Sam Jones Posted February 4, 2020 Author Share Posted February 4, 2020 You might be able to help. Perhaps your diagnosis and solution can point in a direction for me to look. Quote Link to comment
Nicolas Goutte Posted February 4, 2020 Share Posted February 4, 2020 8 minutes ago, Sam Jones said: You might be able to help. Perhaps your diagnosis and solution can point in a direction for me to look. Well it is difficult. I have already told what I knew. One possible reason why we had problems where that the format records for the PIO were already existing in the document. (We have not really checked, as soon as we have realized that it worked in new documents.) However if you have your problem with all kind of documents, new or old, then our one-time experience is of little help. (Therefore my previous post.) Quote Link to comment
JBenghiat Posted February 7, 2020 Share Posted February 7, 2020 Hi Sam, Try turning developer mode off. Looking at the cable tools, if developer mode is off when you open an new drawing, the OIP indents correctly. So this good news is that most folks aren't noticing this. I don't see this in developer mode with my plug-ins, so there might be something up with the structure. The indents should happen in the Init event, not the widget prep event as you might expect. I also make sure to retrieve the index rather than hard coding it: IF vsoPrmName2WidgetID('', paramName, widgID) THEN vsoWidgetSetIndLvl(widgID, stops); Quote Link to comment
Sam Jones Posted February 8, 2020 Author Share Posted February 8, 2020 Despite missing some of the good feedback, I never run in developer mode, and I always retrieve the index. However, I have always put the indents in Widget Prep. I am looking forward to making the moving them to the Init Event. Thank You !! Quote Link to comment
Sam Jones Posted February 8, 2020 Author Share Posted February 8, 2020 Success! Your investigations into the SDK have made you the holder of arcane knowledge and a true guru. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.