Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

schreplace

Status
Not open for further replies.

AVIS0202

Automotive
Mar 27, 2017
7
0
0
IN
Hi All,

Im Trying to replace a axis with another inside a part document ... so while surfing found out that there are no option ...
But i came across a schreplace (object)

Func Replace( SchGRRComp iGRRToBePlaced,
SchComponent iSchCompToBeRemoved) As SchComponent

Replace an existing component with this component.
Parameters:
iGRRToBePlaced
Pointer to the component graphical representation of this component to be placed. if NULL the first representation found will be used.
iSchCompToBeRemoved
Pointer to the existing component to be replaced by this component.
oNewComponent
Interface pointer to the new component instance placed.
Example:
Dim objThisIntf As SchReplace
Dim objArg1 As SchGRRComp
Dim objArg2 As SchComponent
Dim objArg3 As SchComponent
...
Set objArg3 = objThisIntf.Replace(objArg1,objArg2)


Can some one help me in understanding what the exactly mean....
Thanks in advance
 
Replies continue below

Recommended for you

I believe that this replace is from Equipments and Systems (probably Piping) disciplines and it refers to components, not to geometry.

I might be wrong, though.

Calin
 
I think ReplaceComponent is for product ...

Func ReplaceComponent( Product iOldComponent,
CATBSTR iFilePath,
boolean iMultiInstances) As Product

Creates a component which replace the given one.
Parameters:
iOldComponent
The component which will be replaced
iFilePath
the document to replace with
oNewComponent
the component replacing iOldComponent

Note:
Part Number conflict will be resolved automatically.

o Func ReplaceProduct( Product iOldComponent,
Product iNewReference,
boolean iMultiInstances) As Product

Creates a component which replace the given one.
Parameters:
iOldComponent
The component which will be replaced
iNewReference
the reference whom the old copmponent will be reconnected
oNewComponent
the component replacing iOldComponent
 
Status
Not open for further replies.
Back
Top