Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    using the activeX component
Go
New
Find
Notify
Tools
Reply
  
4-star Rating (1 Vote) Rate It!  Login/Join 
Member
Posted
Have anyone been able to use the activeX component AxMetaStream.dll? I have been trying, but I can not seem to pass the necesary parameters to the control. I have been looking into how it is put on a webpage(using the object tag), but still seem to miss something. Any help would be appreciated...

Thanks in advance,

Lasse
 
Posts: 47 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
<Kevin Tieskoetter>
Posted
Where are you trying to embed the control? We work in Excel and PowerPoint, but if you're writing an app to embed the Viewpoint ActiveX control, we rely on several calls that IE gives us, such as SetObjectRects(), SetClientSite(), etc.

The properties we absolutely must have in order to display content are Component (set to ISceneComponent), and Source (set to the URL of an .mtx/mtz file).

Let me know where you're using the control, and I'll see if I can find the relevant info for you...

-kevin
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I am writing an app in C#(.NET). When you import the activeX(COM) control, it makes a wrapper class around the activeX control.

Concerning the SetObjectRects and SetClientSite, I cannot find such functions in the wrapper class, but I do have the option of setting the properties clientRectangle and Site, which I guess should be the same.
 
Posts: 47 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Well, trying again I made it work. Strange though, since I am pretty sure, that I did the same the last time. I also set the ComponentFileName='SceneComponent.mtc'. Anyway, how is it possible to get rid of the flickering viewpoint logos in the background? If it costs something, how much will it be?

Another thing, which actually led me to try this, is that I really do not want to go all the way to mts/mtx. It is possible to drop/drag an obj file onto your scenebuilder, and I was wondering if it was possible to do the same (setting the source) in the active X control? I guess I have to use another componentFileName, or what?
 
Posts: 47 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
<Niko>
Posted
Gooky,
it looks like what you really want to do is not using the AxMetastream ActiveX control.
You should use the SDK itself, the SDK is a C++ programming interface that will let you do this kind of operations. you can create the view yourself, populate the scene yourself (so the data can come from any source).
You should give us more information on what you are trying to do if you want us to be able to help you efficiently. If there are some information you don't want to share with people on this board you can send an email to sdksupport@viewpoint.com.
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Gee thanks, but I am not hiding anything Smile

I want to make a stand alone application for our company. The main purpose is that we have tons of obj files, which we would like to be able to view using a viewer. I have seen that the scenebuilder is able to view obj files, which is exactly what we are after.(Or maybe it converts the obj files into MTX and shows those...)
Right now - our solution would be to convert all these obj files into mts/mtx and then we would be able to see them, but that is a process that is too time consuming, since we every day add appr. 100 obj files.
It sounds like that it would be great to have the sdk, but I have been looking for the download without luck - I guess it will cost me, but how much?

I do not know if the way to go is the activeX control, or it is the SDK. I think I am pretty close with the activeX, but if the last step is impossible, then the SDK is the way to go. Maybe you are able to give me a hint after this explanation.

Thanks in advance,

Lasse
 
Posts: 47 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I got the sdk, and it seems as if there is a bit of reading to be done. I am NOT a c++ programmer, so I guess that if the Active X idea would work, it would suit me extremely nice.
 
Posts: 47 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
<Niko>
Posted
Hi,
there is a way to import OBJ files using only the plugin, but for that i will need to send you one file. send an email to sdksupport@viewpoint.com and i will reply to you with the file attached.
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    using the activeX component