dgp123 Posted March 14, 2017 Author Share Posted March 14, 2017 My dwg unit is inches and I checked with my unit converter every unit is fine... Which type of unit fixed it.. Quote Link to comment Share on other sites More sharing options...
dgp123 Posted March 14, 2017 Author Share Posted March 14, 2017 My dwg unit is inches and I checked with my unit converter every unit is fine... Which type of unit u fixed.. Quote Link to comment Share on other sites More sharing options...
pvsvprasad Posted March 14, 2017 Share Posted March 14, 2017 My dwg unit is inches and I checked with my unit converter every unit is fine... Which type of unit u fixed.. my drawing unit is in meters. please fix and provide as text at drawing instead of dialog box. because dialog box is temporary. Quote Link to comment Share on other sites More sharing options...
dgp123 Posted March 14, 2017 Author Share Posted March 14, 2017 I don't have sources code. I get this fas file from my senior. Quote Link to comment Share on other sites More sharing options...
tombu Posted March 14, 2017 Share Posted March 14, 2017 You can not get into a FAS its compiled so if it does not work can not help. here is a simple start (defun c:plinearea ( / obj) (setq obj (vlax-ename->vla-object (car (entsel "\nPick Pline")))) (setq plarea (vla-get-area obj)) (alert (strcat "Area is sq feet " (rtos plarea 2 2) "\n\n" "Area is sq m" (rtos (* plarea 0.09290304) 2 2))) ) Only way I'd consider. I'd never download any type of compiled code onto my work PC. Not worth the risk of loosing my job over what could be a virus especially for such a simple piece of code. No way to modify it for whatever units you're using either. Quote Link to comment Share on other sites More sharing options...
dgp123 Posted March 15, 2017 Author Share Posted March 15, 2017 Bro this plinearea code not working. I save this code as lsp and load via appload. Not working.... Quote Link to comment Share on other sites More sharing options...
tombu Posted March 15, 2017 Share Posted March 15, 2017 Bro this plinearea code not working. I save this code as lsp and load via appload. Not working.... Add (vl-load-com) to the code to load visual lisp if you're getting an error. Most lispers have it set to load automatically when AutoCAD opens. All of these depend on your unit settings if the values are wrong. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 16, 2017 Share Posted March 16, 2017 Thanks tombu added "load" to post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.