Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Search results for query: *

  1. AlvaroPers

    SelectElement2 is lost if I click

    Ok, I understood. Please, don't close the thread, I will try to find a workaround. Thank you.
  2. AlvaroPers

    SelectElement2 is lost if I click

    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...
  3. AlvaroPers

    SelectElement2 is lost if I click

    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...
  4. AlvaroPers

    SelectElement2 is lost if I click

    It is like: "the mouse clicks cleans the slection object"
  5. AlvaroPers

    SelectElement2 is lost if I click

    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...
  6. AlvaroPers

    SelectElement2 is lost if I click

    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...
  7. AlvaroPers

    Generate AllCatPart from Product (Vb.net)

    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.
  8. AlvaroPers

    SelectElement2 is lost if I click

    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...
  9. AlvaroPers

    DMU Fitting constraints part movement

    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...
  10. AlvaroPers

    Raster mode visualization "shading"

    kantoku, What CATIA release are you using?
  11. AlvaroPers

    Raster mode visualization "shading"

    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...
  12. AlvaroPers

    Raster mode visualization "shading"

    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...
  13. AlvaroPers

    Raster mode visualization "shading"

    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.
  14. AlvaroPers

    Generate Balloons command disable when using code

    I already solved this. It's just to have the current view as active and make a fit in all command. closed.
  15. AlvaroPers

    Generate Balloons command disable when using code

    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...
  16. AlvaroPers

    DLNames activated or not? How to know.

    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 =...
  17. AlvaroPers

    CATIA BOUNDING BOX

    Good observation. Thank you!
  18. AlvaroPers

    DLNames activated or not? How to know.

    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.
  19. AlvaroPers

    CATIA BOUNDING BOX

    Ok. Maybe with a CATIA Release 20 or 21. Gracias igual. Saludos.
  20. AlvaroPers

    The "Undo" Problem after running a macro

    It is solved, since when using the resulting ".exe" program the undo works just fine.
Back
Top