[CONNECT U7 C++] Rerference File Attachments

In V8i I was able to specify a reference file attachment method by:

			ReferenceFile		*pRefFile=mdlRefFile_getInfo( attachedModelRefP );
			if ( pRefFile )
			{
				pRefFile->display.fb_opts.attachMethod = ATTACHMETHOD_CoincidentWorld;
                ...
            }

but I don't see ATTACHMETHOD_CoincidentWorld nor do I see anything like display.fb_opts.attachMethod in a CONNECT DgnAttachmentP struct.

Bruce

Parents
  • Upon searching the header files, I see a note in DgnPlatform.h in the struct for fb_opts.attachMethod: "see RefAttachMethod enumeration" The enumeration seems to not exist. Also, fb_opts is a part of struct referenceFileElm as defined in DgnElements.h. How does one retrieve a Reference Attachment Element? Do you iterate the model's elements, looking for type=100 and level=0? Can it be obtained from the DgnAttachment pointer?

Reply
  • Upon searching the header files, I see a note in DgnPlatform.h in the struct for fb_opts.attachMethod: "see RefAttachMethod enumeration" The enumeration seems to not exist. Also, fb_opts is a part of struct referenceFileElm as defined in DgnElements.h. How does one retrieve a Reference Attachment Element? Do you iterate the model's elements, looking for type=100 and level=0? Can it be obtained from the DgnAttachment pointer?

Children