instvo.mc

来自「microstation MDL入门指导手册!」· MC 代码 · 共 28 行

MC
28
字号
/*--------------------------------------------------------------------------+
|  copyright(c)1991,Mach N.Dinh-Vu,All Rights Reserved                   |
|  Program    :  instvo.mc                                                  |
|  Revision   :  1.0.a                                                      |
|  UpgradeToV8:MicroStationFan                                              |
+---------------------------------------------------------------------------+
|       install VIEWONLY startup command line                               |
+--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------+
|       Include Files                                                       |
+--------------------------------------------------------------------------*/
#include    <mselemen.fdf>
#include    <msoutput.fdf>
#include    <mssystem.fdf>
/*--------------------------------------------------------------------------+
|       name    main                                                        |
+--------------------------------------------------------------------------*/
Private void main (void)
{
   MSElementUnion  startel;
   
   if  (mdlSystem_createStartupElement (&startel, "VIEWONLY") == SUCCESS){
      mdlElement_add (&startel);
      mdlOutput_prompt ("file set to VIEW ONLY");
   } else {
      mdlOutput_prompt("unable to install start up elment");
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?