Design World Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCAD Store | 3DCAD Models | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive











Go Back   3DCADForums > CAD Communities > CATIA Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 8th, 2006, 04:52 AM
waniak
 
Posts: n/a
Default catia + VB - creating two holes in one face

Hi!
Why this code doesn't work:

Dim oHoleOPx As Hole
Set oHoleOPx =
oPart.ShapeFactory.AddNewHoleFromPoint(0,0,0,Powie rzchniaCzolowaOP, 50)
Dim oHoleOPx1 As Hole
Set oHoleOPx1 =
oPart.ShapeFactory.AddNewHoleFromPoint(0,10,10,Pow ierzchniaCzolowaOP, 50)

PowierzchniaCzolowaOP is a reference to the face. The sketch is
created at the YZ plane.

What's wrong? CATIA can't create the second hole. It shows an error:
'Colinear directions: cannot build an axis or a plane'.


Best regards,
Michalcatia + VB - creating two holes in one face
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


  #2 (permalink)  
Old April 10th, 2006, 02:28 PM
support
 
Posts: n/a
Cool Try updating the first hole ...

Try updating the first hole (calling oPart.UpdateObject oHoleOPx) before attempting to create the next.

The reference to the face is apparently temporarily not valid until this is done.

CliffJohnson, COE CATIA V5 Forum

Thanks.
3DCADTips Support Desk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0