Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 4
ChrisAtherton
468 Views, 3 Replies

assembly extrude

Hi,

I'm new to ETO/Intent (1week) and so this may seem like a rookie question:

I'm creating an assembly with a wall in it. That wall can have any number of windows with a frame surrounding them. I'm using a preCreateSelf method to place the window frame and constrain it. However I also want to use the frame part sketch to cut the aperture in the wall. I'm trying the following in the design the precreate calls:

 

 

	Child ass_cut As :IvAssemblyExtrudeFeature
		sketchPart = WINDOW
		sketchName = "CUTOUT"
		extentDirection = :Symmetric
		throughAllType = :throughAll
		participants = WALL_REF1
	End Child

 and getting an error (see attached):

 

Managed exception in function 'iv_ensureAssemblyExtrudeFeatureExists': Error in creating assembly extrude feature 'SMART_WINDOW_2.ass_cut' : The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

 

I'm hoping that its a simple mistake on that part but all help is much appreciated,  I'm also open to better ways of doing this like calling an extrude feature through the API.

 

E-mail: chris (dot) atherton (at) symetri (dot) co (dot) uk

 

Many Thanks

 

Chris

 

 

 

 

Chris Atherton
IEng MIMechE BEng Hons
Design Automation Services Manager | Symetri
https://uk.linkedin.com/in/chrissoathe
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: ChrisAtherton

Try this:

 

Child ass_cut As :IvAssemblyExtrudeFeature
		sketchPart = WINDOW
		sketchName = "CUTOUT"
		extentDirection = :Symmetric
		throughAllType = :throughAll
		participants = {WALL_REF1}
	End Child
Message 3 of 4

Hi,

 

I gave that code a try however it still errors. I'm guessing that the error must be elsewhere then?

 

Many Thanks

 

Chris

Chris Atherton
IEng MIMechE BEng Hons
Design Automation Services Manager | Symetri
https://uk.linkedin.com/in/chrissoathe
Message 4 of 4

the code was correct .... it works correctly once I upgraded to build 96

Chris Atherton
IEng MIMechE BEng Hons
Design Automation Services Manager | Symetri
https://uk.linkedin.com/in/chrissoathe

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report