pbodog
Automotive
- Jan 16, 2013
- 6
Hy all,
I'm Paul and I just join in your community. I hope that we can help each others.
And now to explain what I need and didn't manage to find by my own.
I have a macro that makes views from all elements that I have in a Product, but my environment settings for the view creation I cannot change because of the Project specifications.
So, all the views he makes without Hidden Lines and without Thread and I want that this options in the view to activate because later this piece it has to be dimensioned.
For Hidden Lines and for all other option I found how to modify them but what I need is : How to activate Thread Option??
Set drwViews = drwSheet.Views
Set drwView = drwViews.Add("FrontView")
Set drwViewGenerativeLinks = drwView.GenerativeLinks
Set drwViewGenerativeBehavior = drwView.GenerativeBehavior
Set oDoc3 = CATIA.Documents
drwViewGenerativeLinks.AddLink PartBDs.item(iPB)
drwView.GenerativeBehavior.HiddenLineMode = catHLRModeOn
drwViewGenerativeBehavior.DefineFrontView myAxisCoordinate(3),myAxisCoordinate(4),myAxisCoordinate(5),myAxisCoordinate(6),myAxisCoordinate(7),myAxisCoordinate(8)
drwView.x = 200
drwView.y = 200
drwView.Scale = 1
Set drwViewGenerativeBehavior = drwView.GenerativeBehavior
drwViewGenerativeBehavior.ForceUpdate
drwView.Activate
I'm Paul and I just join in your community. I hope that we can help each others.
And now to explain what I need and didn't manage to find by my own.
I have a macro that makes views from all elements that I have in a Product, but my environment settings for the view creation I cannot change because of the Project specifications.
So, all the views he makes without Hidden Lines and without Thread and I want that this options in the view to activate because later this piece it has to be dimensioned.
For Hidden Lines and for all other option I found how to modify them but what I need is : How to activate Thread Option??
Set drwViews = drwSheet.Views
Set drwView = drwViews.Add("FrontView")
Set drwViewGenerativeLinks = drwView.GenerativeLinks
Set drwViewGenerativeBehavior = drwView.GenerativeBehavior
Set oDoc3 = CATIA.Documents
drwViewGenerativeLinks.AddLink PartBDs.item(iPB)
drwView.GenerativeBehavior.HiddenLineMode = catHLRModeOn
drwViewGenerativeBehavior.DefineFrontView myAxisCoordinate(3),myAxisCoordinate(4),myAxisCoordinate(5),myAxisCoordinate(6),myAxisCoordinate(7),myAxisCoordinate(8)
drwView.x = 200
drwView.y = 200
drwView.Scale = 1
Set drwViewGenerativeBehavior = drwView.GenerativeBehavior
drwViewGenerativeBehavior.ForceUpdate
drwView.Activate