Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Hide feature / Layer

felix1c

New member
How hiding a feature or a layer with weblink ??

We can change status of a layer using status of pfcLayer Class.

the Status LAYER_HIDDEN is only for assembly :
<dl><dt>
<tt><a name="_">LAYER_HIDDEN</a></tt>
</dt><dd>A hidden layer. This applies to Assembly mode only.</dd></dl>How can we hide layer or feature using weblink ??

Can we do this with C/C++ PRO/ToolKit ??
Can we call EXE or DLL in weblink using <tt>LoadProToolkitDll(...) ??</tt>

Thanks
Felix
 
You can hide a layer in Pro/TOOLKIT but you cannot hide a feature. You can only suppress a feature. Yes you can make a Pro/TOOLKIT dll and call it from Weblink.
 
Thanks!

I try to run a PRO/TOOLKIT dll from jLink and it doesn't work. I've got always this execption: pfcXToolkitGeneralError

This is my weblink code:

var dll = session.LoadProToolkitDll("test", "C:\\HideLayer.dll", "C:\\text\\test.txt", true);

My Hidelayer.dll contains only empty user_initialize() and user_terminate().

What's my problem??

Felix
 
You do not have to specify the actual file of where the text path as you have done here: "c:\\text\\test.txt".


You only need to specify: "c:\\text" and LoadProToolkitDll should work.
 
Oops, you said you have empty user_initialize and user_terminate functions. This will also cause it to fail, you MUST have at least one Pro/TOOLKIT API function in user_initialize. I suggest calling ProDisplayDatecodeGet.
 

Sponsor

Back
Top