Activating 3D points in CATIA Drawing Document
Activating 3D points in CATIA Drawing Document
(OP)
Hello Everyone,
I have a CATIA drawing document having front,back and side views.In my 3D part,I also have some 3D points.When we open Drawing document,by default these 3D Points are not visible.We need to select front view properties and tick the “3D points section”..How can we do this using VB code?..I did nt find any appropiate API for this.I am also attaching a picture below for your reference
Please help me
I have a CATIA drawing document having front,back and side views.In my 3D part,I also have some 3D points.When we open Drawing document,by default these 3D Points are not visible.We need to select front view properties and tick the “3D points section”..How can we do this using VB code?..I did nt find any appropiate API for this.I am also attaching a picture below for your reference
Please help me





RE: Activating 3D points in CATIA Drawing Document
RE: Activating 3D points in CATIA Drawing Document
RE: Activating 3D points in CATIA Drawing Document
I could not find it by recording Macro but I have found the API itself
drawingViewGenerativeBehavior3.PointsProjectionMode = CatPointsProjectionMode.catPointsProjectionModeOn
RE: Activating 3D points in CATIA Drawing Document
CODE --> vba
Sub CATMain() Dim drawingDocument1 As DrawingDocument Set drawingDocument1 = CATIA.ActiveDocument Dim drawingSheets1 As DrawingSheets Set drawingSheets1 = drawingDocument1.Sheets Dim drawingSheet1 As DrawingSheet Set drawingSheet1 = drawingSheets1.Item("Sheet.1") Dim drawingViews1 As DrawingViews Set drawingViews1 = drawingSheet1.Views Dim drawingView1 As DrawingView Set drawingView1 = drawingViews1.Item("Front view") Dim drawingViewGenerativeBehavior1 As DrawingViewGenerativeBehavior Set drawingViewGenerativeBehavior1 = drawingView1.GenerativeBehavior Set drawingViewGenerativeBehavior1 = drawingView1.GenerativeBehavior Dim MyView As DrawingView Set MyView = drawingViews1.Item("Front view") MyView.GenerativeBehavior.PointsProjectionMode = catPointsProjectionModeOn drawingViewGenerativeBehavior1.ForceUpdate End Subworks for me. workaround on that
RE: Activating 3D points in CATIA Drawing Document
Thanks a ton. That worked perfect.Can you please tell me your email Id.I will post them directly to you.
RE: Activating 3D points in CATIA Drawing Document
RE: Activating 3D points in CATIA Drawing Document
How can we turn off grid(present in the backgroud) in CATIA using CATIA VB and also CATIA CAA?