WorkAxis.DrivenBy issues (IV2008)

WorkAxis.DrivenBy issues (IV2008)

rschader
Advocate Advocate
316 Views
2 Replies
Message 1 of 3

WorkAxis.DrivenBy issues (IV2008)

rschader
Advocate
Advocate
I've been using a macro I wrote pretty successfully until today. On one part which has a good imported solid, I input some datum points and then place workaxes through the points normal to a part face (manually using UI). A portion of the macro is supposed to check the "DrivenBy" object collection of the workaxis to look for a possible workpoint object and rename the axis using the workpoint name as a prefix. Out of 10 axes I inserted manually on points, 4 of them error out the macro with a Run-time error 445 "Object doesn't support this action", apparently on the following code line:

Set oWA_DrivenBy = oWA.DrivenBy

where oWA_DrivenBy is dim'd as an ObjectCollection and of course oWA is a WorkAxis.

Is Autodesk aware of this issue? I can send the affected part to AD for analysis of the axes, but can't post it here.

Bob S.
0 Likes
317 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Bob,

Please go ahead and send me the part. Since you've implied that this worked
in R11, an R11 part (not migrated to Inventor 2008) would be preferable.

thanks,
Sanjay-

wrote in message news:5630560@discussion.autodesk.com...
I've been using a macro I wrote pretty successfully until today. On one part
which has a good imported solid, I input some datum points and then place
workaxes through the points normal to a part face (manually using UI). A
portion of the macro is supposed to check the "DrivenBy" object collection
of the workaxis to look for a possible workpoint object and rename the axis
using the workpoint name as a prefix. Out of 10 axes I inserted manually on
points, 4 of them error out the macro with a Run-time error 445 "Object
doesn't support this action", apparently on the following code line:

Set oWA_DrivenBy = oWA.DrivenBy

where oWA_DrivenBy is dim'd as an ObjectCollection and of course oWA is a
WorkAxis.

Is Autodesk aware of this issue? I can send the affected part to AD for
analysis of the axes, but can't post it here.

Bob S.
0 Likes
Message 3 of 3

rschader
Advocate
Advocate
Sanjay,

I will send you the part tomorrow. I'm at home right now. But to let you know, I just wrote this macro a couple weeks ago (I had another thread you helped me out on regarding the SetSize method. The part at issue is a native IV2008 imported from a step or UG part file and fixed up to be a valid solid.

Bob
0 Likes