dimensioning an assembly component using api

dimensioning an assembly component using api

Anonymous
Not applicable
283 Views
0 Replies
Message 1 of 1

dimensioning an assembly component using api

Anonymous
Not applicable

I came to know how to create dimensions for solid parts, when i moved to next level, creating dimensions for an assembly component using api, i found two cases: ( Iam using planes to create dimensions)

1. Using planes in parts and creating proxies for planes in individual parts and using this proxies for creating dimensions.

2. Using the planes in the iam document, No creation of proxies.

I got succeeded in the first case, using planes in the parts and proxies of them. But am facing errors in second case.

 

Plane1 = AssemDoc.ComponentDefinition.WorkPlanes("WorkPlane1")

Plane2 = AssemDoc.ComponentDefinition.WorkPlanes("WorkPlane2")

Axes = AssemDoc.ComponentDefinition.WorkAxes

Axis1=Axes.Createbytwoplanes(Plane1,Plane2)

 

Here am getting error. Am unable to create axis for planes in an assembly doc

I created axis for planes in partdoc and used them to create dimensions, but why am unable to get the same with assembly doc planes ???

 

Can any one Suggest me plzzz?

0 Likes
284 Views
0 Replies
Replies (0)