I don't want to highlight a feature.
The code I attached was for illustration purposes, just to show that the oSel object is empty after some mouse clicking in the 3D workspace.
So, there is no way to "retain" or "preserve" the selected object if the user make an accidental click while the oSel...
Guys,
I appreciate your answers, but again, I'm not looking for multi-selection nor pre-selection.
It is a different question I'm asking.
When one uses the "SelectElement2" CATIA await for you to pick one element, in this case let say a product from the tree.
Ones the selection is done, the...
I understand that, my concern is another one, let me explain:
Open a CatPart, and invoke the "extract" command for example (GSD Workbench), select a face or something.
The seleccion at this point is kept in the extract menu (in the form, indicating the name of the entity you selected).
Now, at...
Public Function SingleSelection2(oCATIA As CATIA) As INFITF.Selection
Dim oDocumentSelected As INFITF.Document
Dim oAppCATIA As INFITF.Application = oCATIA.AppCATIA
Dim oActiveDocu As INFITF.Document = oAppCATIA.ActiveDocument
' Sew indica el tipo que se quiere...
I found it very useful. I'm trying to find any documentation, without success so far.
It is a class which extends CATBaseDispatch.
So, there is no other way than late binding those lines of code.
Another piece of mystery to this, is where did you find the "KeepAnnotations" argument.
Hello,
If I call the method "SelectElement2", I select the proper element, all ok. But, at this point (with the selected element "loaded") if I click in the 3D workspace or anywhere, the selection is lost.
So, if the end user make a click before using the selected element, the selected element...
Hello,
For those who are familiar with the DMU Fitting workbench:
While doing a track, you can pick a lose part of an assembly. Is it possible to move the part and move the whole assembly according to the constraints, just by picking the part?
For example: a robot, if I move the tip of the...
Interesting that I just have 3 constants, and you have 6.
I have HD2.
I'm using Visual Basic under Visual Studio 2022. See the attachment.
The namespace is DRAFTINGITF, so it's the same as yours.
I don't know why I don't have the others constantans.
I'm gonna make a try using a different...
Hello kantoku,
Thank you for replying,
The only options the generative object offers to me for ImageViewMode are: "catImageModeHRD" and "catImageModeOff"
There is no "catImageModeShadingWithEdges"
Did the code work for you?
Please, let me know,
Thank...
I quote here a post with an unsolved question, at least for me.
thread560-460083
Does anyone knows how to change the raster mode option to "shading" programmatically?
Thanks,
Al.
Hello,
When creating a drawing document and adding a new view programmatically, I end up with the Balloon Generation button greyed out.
Instead, if I do the same manually, I can use the "generate balloons command".
Why the button is disabled when I use the code?
Sub...
Thank you for the replay.
I understand you point, I'm able to read the file, in this case I can read the "DocEnv.CATSettings"
Then, I can decoded using "Unicode" for example. But then how do I proceed?
For example:
Dim bteRead() As Byte
bteRead =...
After a little research in this topic, I found that although you can grab the code using the damping function in the option dialog box, it is not possible to know if the current CATIA session is working with DLNames or folder as current.
If anyone has an idea about this, please share it.
Thx.