Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: CONNECT SDK : mdlRefFile_beginnAttachmentToModel/mdlRefFile_completeAttachment

$
0
0

Hi,

the builder object is returned from mdlRefFile_beginAttachment.
I have created a small code example to demonstrate use of the functions mdlRefFile_beginAttachment. and mdlRefFile_completeAttachment:

	DgnAttachmentBuilder  builder;
	WCharCP  fileName = L"D:/DGN/ref.dgn";
	WCharCP  modelName = L"Default";
	WCharCP  logical = L"Logical name";
	WCharCP  description = L"Description";
	DgnModelRefP  modelToAttachTo = ACTIVEMODEL;
	StatusInt stat = mdlRefFile_beginAttachmentToModel(builder, fileName, modelName, logical, description, modelToAttachTo);
	if (SUCCESS == stat)
	{
		builder->SetAttachDescription(L"New decsription");
		DgnAttachmentP attachment = 0;
		stat = mdlRefFile_completeAttachment(attachment, builder, RefAttachNestMode::None, 10, true);
	}

I hope this helps?

Best regards,
Artur


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>