[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
Subject: Re: Object Id's
From: Chris Despopoulos <cud@xxxxxxxxxx>
Date: Tue, 05 Jun 2001 00:33:38 +0200
References: <3ba0e0a2.1212818701@smtp.omsys.com>
Sender: owner-framers@xxxxxxxxx
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01
Each FM object has an object type, which you can get via F_ApiGetObjectType(). That returns UIntTs like FO_Book, FO_Doc, etc. The FDK defines all these. I don't believe you can rely on a direct mapping between these obj types and the numbering scheme used in the openObjectId markers. I haven't worried about this part of the prodcut for some time - off the top of my head, the only way you can know what numbers to use in the goToObjectId link for specific object types, is to already know. That is to say, you'll have to create the lists that are interesting, and see what numbers they produce. It seems you already did that. Then set up a switch to convert an object type into the value you need for that number. Hopefully, you aren't dealing with too many object types... There are something on the order of 90 FO_* object types, but only so many of them make sense for your purposes. Also, do you use the F_ObjHandleT ID fo the object, or the FP_Unique property of the object. I believe what you need is the FP_Unique (the UID)- this is persistent across sessions. Cheers cud > I am building a tool that will go through all the files in a given book and > test for various inconsistencies or errors that our production server will > not allow. I want to generate a report with links to the specific errors - > very similar to what happens when you add a List of References but much more > detailed and specific for our needs. I can do this no problem but there is > one part that I need to hard code in and was wondering if anyone could shed > some light on the problem. If you look at a LOR and the text of the marker > you see code similar to the following: openObjectId Chapter.fm:3 1242822 It > is very easy to get the filename and the object ID that I want to link to > but it is the 3 that I am wondering about. It seems to indicate the type of > object that you are linking to, for instance a cross reference is 3, a text > inset is 6 and a graphic is 4. Somewhere someplace there must be > information on how to get the number associated with a given object but I > have not had much luck locating it in the FDK. I am hard coding the value > that I need in but it would be better to be able to get the value > programmatically. ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **