Lesson 5.1 – Creating A New Assembly

You need to be logged in to view this content. Please login or become a member.

<<  Prev   |   Index   |   Next  >>

Description

In this lesson you will learn to fully automate the creation of an assembly, with particular emphasis given to mating techniques.

Notes

An alternative to mating with named entities is to use mate references. As with mate entities, this requires your designers to include the mate references beforehand to make automation simpler. See IMateReference interface for more information. In my opinion, however, automation using mate references is much more tedious than automating with named entities.

If for some reason named entities are not an option but you don’t want to go the tedious mate references route then you can also create reference geometry like planes and axes to use with mating. Using IModelDocExtension::SelectByID2 you can easily select the reference geometry.

Lesson Files

Lesson 5.1 start code
Lesson 5.1 – drawer
Lesson 5.1 – crank

2 Comments

  1. chats

    I don’t understand why you write collKnobFace.Item(j) instead of swKnobFace at 34:40 because the swKnobFace has already been “updated” by the GetKnobFace call in the For loop, just before the AddMates call.

    • Hi chats,

      You’re right, it was not necessary. Indeed, it was not necessary to use collections at all in this example. At the point in the video you speak of, however, I did get to demonstrate two things: 1) how to access items in a collection, 2) how to use a collection item as a reference to an object, such that its members can be used.

Questions and Comments

You must be logged in to post a comment.