fORM bUTTON BEHAVING DIFFERENTLY ON DIFFERENT COMPUTERS

Started by jrupert, March 14, 2014, 02:10:47 PM

Previous topic - Next topic

jrupert

I have a form (JMR-1.jpg and JMR-2.jpg attached) where when selecting the Insert NDI button, different results are happening.

The execution is that when selected, a mtext object should be inserted at a user prompted location.  JMR-1.jpg shows proper results.

On other computers sometimes only the first 5 or 6 characters are displayed and on another computer the backslashes are not displayed along wit the first character after the backslash.

Could this be a font issue?  Does anyone have a clue as to where to start in resolving this issue?

Thank you in advance!

CODE:

;;;---NDI STAMP INSERT
(DEFUN c:GBSCC_FormGBSCC_BTNInsertNDI_OnClicked ( / )
    (command "textstyle" "GBS_Standard")
    (command "layer" "set" "text" "")
    (setq dwgPath (strcat (getvar "dwgprefix") (getvar "dwgname")))

    (setq d (rtos (getvar "CDATE") 2 6)
          yr (substr d 3 2)
          mo (substr d 5 2)
          day (substr d 7 2)
    )
    (setq dateNow (strcat mo "/" day "/" yr))
    (setq initials (dcl_Control_GetText GBSCC_FormGBSCC_TBInitials))
    (setq gbspn (dcl_Control_GetText GBSCC_FormGBSCC_TBGBSPN))
    (setq thickness (dcl_Control_GetText GBSCC_FormGBSCC_CBoxThickness))
    (setq material (dcl_Control_GetText GBSCC_FormGBSCC_CBoxMaterial))
    (setq revision (dcl_Control_GetText GBSCC_FormGBSCC_TBRevisionLevel))

    (DCL_FORM_CLOSE GBSCC_FormGBSCC)

    (setq pt1 (GETPOINT "\nSelect UPPER-LEFT CORNER of NDI STAMP insertion Point: "))
    (setq pt2 (GETCORNER pt1 "\nSelect LOWER-RIGHT CORNER of NDI STAMP insertion Point: "))

    (setq PN (strcat "GBS PN: " gbspn))
    (setq TH (strcat "THICKNESS: " thickness))
    (setq MT (strcat "MATERIAL: " material))
    (setq RV (strcat "REVISION: " revision))
   
    (command "mtext" pt1 pt2 dwgpath dateNow initials PN TH MT RV "")

)

owenwengerd

Mtext control codes are preceded with a backslash. You'll need to escape your backslashes, else valid character combinations will be interpreted as control codes.
Owen Wengerd (Outside The Box) / ManuSoft