Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

FDK Rename an element

Status
Not open for further replies.

nesplb

Programmer
Jul 29, 2003
109
NO
Hi!
Does anyone know how I can rename for instance a CROSSREF element in Framemaker by FDK?
I have tried this code:
Code:
F_ApiSetString(docId, elemDefId,FP_Name, "Xref");
(elemDefId is the id of the CROSSREF element)
The code changes the name of the element but the element turns red in the structure. If i try to change the element CROSSREF by using the element dialog box and choose Xref and choose "change" it works fine!
Is there a Function that can change an element to another element if it's allowed in the structure? -Or do I have to save the contents of an element in a tmp variable, unwrap the element and then insert a new element and put the tmp contents in the new element?

In advance thanks!:)



Pål Nesteby

PDC-Tangen
Norway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top