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.

How to get the name of a drawing format

weblinker

New member
Hello


is it possible to get the Format Name of a drawing with weblink. In the API I found


pfcSheetOwner GetSheetFormat (integerSheetNumber)


But anyhow this does not work. Is there another possibility to get this name?


Best Regards
Juergen
 
In Pro/TOOLKIT I can call ProDrawingFormatGet() which returns the name of the format. I would take another look at what a pfcSheetOwner is, may there's a name?






#include <ProDrawing.h>

ProError
ProDrawingFormatGet
(


ProDrawing drawing



/* (In)


The drawing


*/


int sheet



/* (In)


The sheet number


*/


ProName format_name



/* (Out)


The name of the drawing sheet's format


*/

)
 
var CurFormat = CurDrawing.GetSheetFormat (1);
var CurFormatName = CurFormat.FullName;


Class pfcSheetOwner.GetSheetFormatlaedsto a pfcDrawingFormat-Object
Description
This class is a subclass of pfcModel; it describes a drawing format model.


Direct Parent Classes:
pfcModel


that's all. But there must be a FullName property which gives me the name of the format and it works
 

Sponsor

Articles From 3DCAD World

Back
Top