Using Apprentice to open .idw in IV2008

Using Apprentice to open .idw in IV2008

Anonymous
Not applicable
715 Views
11 Replies
Message 1 of 12

Using Apprentice to open .idw in IV2008

Anonymous
Not applicable
Any changes needed to make for using apprentice to open .idw file
I have no problem with .ipt and iam. however, when I tried to open .idw with
apprentice, I got runtime error '-214748113(8000fffff)':
method '~' of object '~' failed
Thx, CVA

--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
0 Likes
716 Views
11 Replies
Replies (11)
Message 2 of 12

Anonymous
Not applicable
Would someone from Autodesk confirm this?
Thx, CVA

--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
"CVAengineering" wrote in message
news:5628283@discussion.autodesk.com...
Any changes needed to make for using apprentice to open .idw file
I have no problem with .ipt and iam. however, when I tried to open .idw with
apprentice, I got runtime error '-214748113(8000fffff)':
method '~' of object '~' failed
Thx, CVA

--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
0 Likes
Message 3 of 12

Anonymous
Not applicable
Ok... I am able to locate where the error came from (please see the att.) -
Hopefully, it'd give you guys a hints
Thx, CVA
--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
"CVAengineering" wrote in message
news:5629310@discussion.autodesk.com...
Would someone from Autodesk confirm this?
Thx, CVA

--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
"CVAengineering" wrote in message
news:5628283@discussion.autodesk.com...
Any changes needed to make for using apprentice to open .idw file
I have no problem with .ipt and iam. however, when I tried to open .idw with
apprentice, I got runtime error '-214748113(8000fffff)':
method '~' of object '~' failed
Thx, CVA

--
www.CVAengineering.com

IV11 Pro. sp2 and IV2008
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 3.3.6
0 Likes
Message 4 of 12

Anonymous
Not applicable

Just a wild guess, but oAppDocIdw is neither
dimensioned nor declared.  Try "Option Explicit".






brian r
iwaskewycz


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">cad systems
manager


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com/">core furnace
systems
0 Likes
Message 5 of 12

Anonymous
Not applicable

Actually, it has been declared as a global variable

I guess the counting number of sheets caused error
here

CVA


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Just a wild guess, but oAppDocIdw is neither
dimensioned nor declared.  Try "Option Explicit".






brian r
iwaskewycz


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">cad systems
manager


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com/">core furnace
systems
0 Likes
Message 6 of 12

Anonymous
Not applicable

This appears to be a case specific issue.  I
just wrote a simple program to test it and am able to get the sheet count
without any problem.  I tested it with a few different drawings, from
different versions of Inventor, and they all worked fine.  Is this
happening for all cases for you?  Can you post a drawing that's
demonstrating this problem?
--
Brian Ekins
Autodesk Inventor
API
0 Likes
Message 7 of 12

Anonymous
Not applicable

Brian,

I got the same error mesg even though I tried to
open a template ansi .idw file

CVA


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


This appears to be a case specific issue.  I
just wrote a simple program to test it and am able to get the sheet count
without any problem.  I tested it with a few different drawings, from
different versions of Inventor, and they all worked fine.  Is this
happening for all cases for you?  Can you post a drawing that's
demonstrating this problem?
--
Brian Ekins
Autodesk Inventor
API
0 Likes
Message 8 of 12

Anonymous
Not applicable

and yes, my program works fine for all other
previous releases until now, IV2008


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Brian,

I got the same error mesg even though I tried to
open a template ansi .idw file

CVA


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


This appears to be a case specific issue. 
I just wrote a simple program to test it and am able to get the sheet count
without any problem.  I tested it with a few different drawings, from
different versions of Inventor, and they all worked fine.  Is this
happening for all cases for you?  Can you post a drawing that's
demonstrating this problem?
--
Brian Ekins
Autodesk Inventor
API
0 Likes
Message 9 of 12

Anonymous
Not applicable

Here's the VB 6 source from the sample I wrote to
test this.  Can you try this to and see if it works or not for
you?

 

Private Sub Command1_Click()
   
Dim oApprentice As New ApprenticeServerComponent
    Dim oDoc
As ApprenticeServerDrawingDocument
    Set oDoc =
oApprentice.Open("C:\Temp\Drawing.idw")
   

    Debug.Print oDoc.NeedsMigrating
   
Debug.Print oDoc.Sheets.Count
   
    Dim
oSheet As Inventor.Sheet
    For Each oSheet In
oDoc.Sheets
        Debug.Print
oSheet.Name
    Next
End Sub

--
Brian
Ekins
Autodesk Inventor API
0 Likes
Message 10 of 12

Anonymous
Not applicable

I got the same error msg as above

CVA


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Here's the VB 6 source from the sample I wrote to
test this.  Can you try this to and see if it works or not for
you?

 

Private Sub
Command1_Click()
    Dim oApprentice As New
ApprenticeServerComponent
    Dim oDoc As
ApprenticeServerDrawingDocument
    Set oDoc =
oApprentice.Open("C:\Temp\Drawing.idw")
   

    Debug.Print oDoc.NeedsMigrating
   
Debug.Print oDoc.Sheets.Count
   
    Dim
oSheet As Inventor.Sheet
    For Each oSheet In
oDoc.Sheets
        Debug.Print
oSheet.Name
    Next
End Sub

--
Brian
Ekins
Autodesk Inventor API
0 Likes
Message 11 of 12

Anonymous
Not applicable

Brian,

If I rename the sheet in the .idw file, then the
program works ok. However, I the file has more than on sheet and it has default
sheet name such as Sheet:1, Sheet:2, then I got a runtime error

CVA


 

IV11 Pro. sp2 and IV2008
Window  XP Pro  sp2
Pentium 3.2
Ghz, 3.0 GB of RAM
NVIDIA FX 3400   84.26
SpacePilot  V
3.3.6


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Here's the VB 6 source from the sample I wrote to
test this.  Can you try this to and see if it works or not for
you?

 

Private Sub
Command1_Click()
    Dim oApprentice As New
ApprenticeServerComponent
    Dim oDoc As
ApprenticeServerDrawingDocument
    Set oDoc =
oApprentice.Open("C:\Temp\Drawing.idw")
   

    Debug.Print oDoc.NeedsMigrating
   
Debug.Print oDoc.Sheets.Count
   
    Dim
oSheet As Inventor.Sheet
    For Each oSheet In
oDoc.Sheets
        Debug.Print
oSheet.Name
    Next
End Sub

--
Brian
Ekins
Autodesk Inventor API
0 Likes
Message 12 of 12

Anonymous
Not applicable

Ouch...

 

It seems that the TrueConnect implementation (which
requires unique sheet names) is the cause for even more grief...


--
T. Ham
CAD Automation & Systems
Administrator
CDS Engineering BV

 

HP xw4300 Workstation
Dual Pentium XEON 3.6 Ghz
4 GB SDRAM
NVIDIA
QUADRO FX 3450/4000 SDI (Driver = 8.4.2.6)
250 GB SEAGATE SATA Hard
Disc
3Com Gigabit NIC

 

Windows XP Professional SP2
Autodesk Inventor Series 10
SP3a
--
0 Likes