Author Topic: Issues compiling to VLX  (Read 5955 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Issues compiling to VLX
« Reply #15 on: November 25, 2016, 05:36:22 PM »
Ok, if you write dynamic DCL you have to
1) Write more code and read much longer bumf;
2) Check  more errors and every slash around strings;
3) Check if DCL is created/exist/loaded. Some paranoiac antivirus software and latest versions of windows can prevent file I/O operations.
4) Rewrite your code every time then Autodesk fails with codepages...

I've been using the technique for 2 decades and none of the reasons you cite have ever been an issue. My experience is contrary to what you suggest -- coding overhead nominal and has more reliable and secure than shipping a companion dcl file or packaging one via the vlisp compiler (which doesn't encrypt packaged dcl). tl;dr: I've never had one of my users or customers report an issue. Not once.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Issues compiling to VLX
« Reply #16 on: November 25, 2016, 07:14:51 PM »
You can add DCL to your VLX app. Making DCL on the fly is very bad idea.  :uglystupid2:
there could be issues with dcls
read here https://www.theswamp.org/index.php?topic=47908.msg541261#msg541261

ur_naz

  • Newt
  • Posts: 68
  • Made in Ukraine
Re: Issues compiling to VLX
« Reply #17 on: November 26, 2016, 09:20:54 AM »
You can add DCL to your VLX app. Making DCL on the fly is very bad idea.  :uglystupid2:
there could be issues with dcls
read here https://www.theswamp.org/index.php?topic=47908.msg541261#msg541261
Wow, multylanguage apps is realy butthurt... When you going to support multiple languages you have to make multiple
* menu
* prompts (in lisp)
* help system
Better way is to do all in English.

Then you have problem with codepages you may just translate codepage one to another. When revert back if need. When dialogs are in separate files it is much easier to do and not changes lisp staff.

When you want to rearrange DCL within LISP you need to rewrite LISP. It is hard to do, because DCL stored in separate strings. This is good chance to get error as result.

Finally, DCL in LISP seems very very ugly  :sick:

ribarm

  • Gator
  • Posts: 3279
  • Marko Ribar, architect
Re: Issues compiling to VLX
« Reply #18 on: November 26, 2016, 09:59:38 AM »
I've never attempted to compile to VLX, but after reading this I thought would (repeat 1) can be an alternative of a loooong (progn).

(repeat 1) is behaving exactly like (progn)... Check for 255 lines and fails in VLIDE; check for 254 lines and it passes test...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Issues compiling to VLX
« Reply #19 on: November 26, 2016, 11:56:35 AM »
On "making dcl on the fly" ... maintaining code and packaging code are distinctly different activities. Both are easy, enjoyable -- fun even. My maintained code is miles from ugly. On the other hand packaged code does not get scrutinized for aesthetics but for reliability, robustness ease of distribution etc. But alas, I evangelize fruitlessly.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Issues compiling to VLX
« Reply #20 on: November 28, 2016, 10:13:20 AM »
Almost all of my dialogs are purpose built and centrally referenced from a network location, so there isn't much point in building them on the fly from code.  But as noted, any differences are mostly stylistic rather than technical.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

ur_naz

  • Newt
  • Posts: 68
  • Made in Ukraine
Re: Issues compiling to VLX
« Reply #21 on: November 29, 2016, 12:09:52 PM »
Almost all of my dialogs are purpose built and centrally referenced from a network location, so there isn't much point in building them on the fly from code.  But as noted, any differences are mostly stylistic rather than technical.

Using network is the worse than creating a dialogue on the fly, because the server may be down or any update have bugs. Then stop the work of an entire workgroup. In my opinion, it is best to install the application locally and to enable its users to update their own. You can also divide users into groups depending on their experience. More experienced users will be the first to try out new features of the application, test the application performance and send error reports. Thus, it can safely carry out testing of the new features and their implementation. Finally, most of user not need any updates.They may get angry when something suddenly changes in their usual work.