Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.

 

The COE 2008 Fall Industry Workshops

Experience two days of industry-focused education and hands-on training on the Dassault PLM solutions suite of products.  All education featured at the workshop is developed by and for users of CATIA®, ENOVIA®, DELMIA® and SIMULIA®.
 

Automotive
Oct. 15-16
Troy, Michigan

Aerospace & Defense
Oct. 27-28
Wichita, Kansas

Register by October 10 and Save $100


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: API for Variable offset creation

You are not authorized to post a reply.   
Author Messages
ranjithmelath

23 Apr 2008 12:08 AM

Hi,

I am not able to record a macro for Variable Offset creation. Please let me know of any method to automate this process of creating Variable offsets.

Thanks and Regards,

Ranjith.M

STONE

23 Apr 2008 12:48 AM

Sometime you have noting according recording a macro,it doesn't exposure
 About creating Variable offsets from VBAApi,there are HybridShapeOffset,HybridShapePlaneOffset and so on,you can find them from Automation doc,
Hope it can heip you ,

Mandy

,

knowledgeds

23 Apr 2008 02:23 AM
Hello,

It is also possible on CXR18 level to do it directly in Knowledge Language.
BJose

23 Apr 2008 03:32 AM

Please clarify whether u need special licences to do variable offset.

There is no variable offset creation button in my catia, but i copy already created VO from other models and i am able to edit them.

If anyone can help me with a code to automate variable offset creation, it would be helpful

MBERRY

23 Apr 2008 06:49 AM
BJose,

You need the GSO license to create a variable offset.

As for automating this, I don't have working VB code handy to share, but you need to use the object browser in VBA to understand what is available. It is definitely possible.

It will be something like this...(I am just writing this off the cuff)

Set objRef = objPart.CreateReferenceFromObject( global surface to offset like a join )
Set objVarOffset = HybridShapeFactory.AddNewVariableOffset (objRef)
Set objSubRef1 = objPart.CreateReferenceFromObject( sub surface )
objVarOffset.AddNewConstantConstraint objSubRef1, some length
objPart.HybridBodies.Item(1).AppendHybridShape objVarOffset

See this post too...
http://www.coe.org/Collaboration/DiscussionForum/ActiveDiscussions/tabid/210/forumid/10/tpage/1/view/topic/postid/113533/Default.aspx#115951

Mike
BJose

23 Apr 2008 11:27 PM

Thx Mike,

But dont have GSO licence........

But i am able to copy a variable offset(from other models) to the part and edit its properties on double clicking it. ( in MD2 and HD2). That is how i am creating variable offsets while manual modeling.

Is there any way to replicate this through code?

You are not authorized to post a reply.
Forums > COE Forums > KBE > API for Variable offset creation



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)