Create Dedicated View Representation

Create Dedicated View Representation

LIUZHILI8888
Enthusiast Enthusiast
462 Views
8 Replies
Message 1 of 9

Create Dedicated View Representation

LIUZHILI8888
Enthusiast
Enthusiast

how to Create Dedicated View Representation to create a view that displays only the flattened surface. The view representation is useful to isolate the surface in a part file

0 Likes
463 Views
8 Replies
Replies (8)
Message 2 of 9

LIUZHILI8888
Enthusiast
Enthusiast

微信图片_20230906173222.jpg

0 Likes
Message 3 of 9

A.Acheson
Mentor
Mentor

Hi @LIUZHILI8888 

Can you share an image of this done manually first then we might be able to assist with a code version of the same. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 4 of 9

LIUZHILI8888
Enthusiast
Enthusiast

微信图片_20230906173222.jpg

0 Likes
Message 5 of 9

A.Acheson
Mentor
Mentor

Hi @LIUZHILI8888 

AAcheson_0-1694142389939.png

You can follow the path from part document down to DesignViewRepresentations. API help here

Dim partDoc As PartDocument = ThisDoc.Document
Dim partDef As PartComponentDefinition = partDoc.ComponentDefinition
Dim repManager As RepresentationsManager = partDef.RepresentationsManager
Dim designViewReps As DesignViewRepresentations = repManager.DesignViewRepresentations

designViewReps.add("NewViewRep")

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 6 of 9

LIUZHILI8888
Enthusiast
Enthusiast

how to  isolate the surface in a part file tn the view representation 

0 Likes
Message 7 of 9

LIUZHILI8888
Enthusiast
Enthusiast

微信截图_20230907100247.png

0 Likes
Message 8 of 9

A.Acheson
Mentor
Mentor

Hi @LIUZHILI8888 

 

I think you will need to show the manual approach you take to isolate the surface in the model before you can do it by code. You cannot hide features unless they have been made into an independent solid and then you can control visibility of these solids. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 9 of 9

Frederick_Law
Mentor
Mentor

I don't think View Rep work for this.

More like ModelState.

 

SheetMetal has Flat Pattern.

0 Likes