Register  Login   Search
 Latest Posts Minimize

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/09/2010 3:55 AM
wksyspro

SEpartX crashs VB6
Solid Edge Programming
03/08/2010 8:38 AM
ara

Assembly instances not supported
Solid Edge General
03/07/2010 8:10 PM
cadourian

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/06/2010 2:44 PM
tirolerover40

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/06/2010 4:06 AM
wksyspro

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/05/2010 2:35 PM
tirolerover40

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/05/2010 11:36 AM
wksyspro

How to add menu to the QuickAccessToolbar
Solid Edge Programming
03/05/2010 4:57 AM
TomasV

Save sketched profile
Solid Edge Programming
03/04/2010 9:42 AM
Autoit

Use Isotable.dll with ST2 64bits
Solid Edge Programming
03/04/2010 7:22 AM
sinex

.Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/03/2010 3:03 PM
tirolerover40

How to get the threadFeature information from CopiedPart?
Solid Edge Programming
03/01/2010 5:36 AM
Julia

RE: How to read, from a draft, the file properties of the part / assembly
Solid Edge Programming
02/26/2010 8:18 AM
mdrummond

Assy Oeration Property
Solid Edge Programming
02/26/2010 8:13 AM
mdrummond

How the expansion of the Engineering Reference?
Solid Edge Programming
02/25/2010 8:35 PM
fatkids

RE: problems with creating toolbar
Solid Edge Programming
02/25/2010 11:39 AM
Nika_Neugier

Crash editing blocklabeloccurrence value
Solid Edge Programming
02/25/2010 2:55 AM
Tymen

problems with creating toolbar
Solid Edge Programming
02/24/2010 5:43 AM
Nika_Neugier

RE: Convert .dft to .dxf
Solid Edge Programming
02/23/2010 1:11 PM
jvelasco

RE: Internal Error: Invalid Status 0x248
Solid Edge General
02/22/2010 8:46 AM
catamayo

how to get mouse click event of the view of the SEPreview.ocx
Solid Edge Programming
02/21/2010 7:29 PM
wei

how to use the SEPreview.ocx
Solid Edge Programming
02/20/2010 2:41 AM
wei

Solid Edge / Insight BOM Extraction
Solid Edge Programming
02/18/2010 9:14 AM
alspaughja

How to set FaceStyle for face in occurrence?
Solid Edge Programming
02/18/2010 1:08 AM
jurajjoob

How to set Occurrence.FaceStyle to (Use Part Style) or (None)?
Solid Edge Programming
02/17/2010 2:42 PM
jurajjoob

RE: Exception when calling....
Solid Edge Programming
02/17/2010 8:03 AM
boman

Edit occurrence in place
Solid Edge Programming
02/17/2010 5:35 AM
Tymen

Getting part surface from assembly surface
Solid Edge Programming
02/16/2010 3:18 AM
Serge

RE: Need basic CNC info please
Solid Edge General
02/16/2010 12:20 AM
jr199

Need basic CNC info please
Solid Edge General
02/14/2010 12:39 PM
SirMalan


  
 Forums Minimize

Subject: What's error?
Prev Next
You are not authorized to post a reply.

Author Messages
assassinUser is Offline
Site Member
Site Member
Posts:73

01/06/2010 10:30 AM  

Hi, Jason, I want to change the variable in variable table by program with C++, but I find a question, program as following,

    pDis=pPartDoc->Variables;

    hr=pDis->QueryInterface(&pVars);

    pDis->Release();
//    hr=pVars->Edit("a","120"); /// It's OK!
    _variant_t v;
    v="a";
    hr=pVars->Item("a")->QueryInterface(&pVar); ///hr=NOINTERFACE

 

The same function in another program, the last hr's value is S_OK!

 

Could you help me?

 

Thanks!

Julian GuilloUser is Offline
SE Guru
Site Member
Site Member
Posts:95

01/11/2010 9:10 AM  
Hi,
I don't know about C++ but i think it could be the old problem:
In the variable table you can find "Variable" objects AND "Dimension" objects, so if you find the object with the "Query" method, you have to declare the variable that receives the object as type "Object".
If the variable is type "Variable" you will not get Dimensions and viceversa.
In your case i think i would try revising the declaration of "pVar" if i could understand your example.
You are not authorized to post a reply.
Forums > Solid Edge > Programming > What's error?



ActiveForums 3.7

  

 Users Online Minimize

Membership Membership:
Latest New User Latest: Alex2010
New Today New Today: 5
New Yesterday New Yesterday: 2
User Count Overall: 1778

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now:

  

Siemens PLM Connection

JasonNewell.NET on Facebook

The Code Project

Spatial Freedom Astroid

Use OpenDNS

Copyright 2008 JasonNewell.NET   Terms Of Use  Privacy Statement