Jump to content
Sign in to follow this  
Assembly

{$INCLUDE}

Recommended Posts

I'm trying to use an {$Include} Inside an included file.

IE

PIO Says

{$include /Drive/Object.txt}

Content of Object.txt

Procedure Example;

Begin

{$include /Drive/ObjectDrawRect.txt}

End;

Run(Example);

Content of ObjectDrawRect.txt

Rect(0,0,500,500);

It does not seem like the nested include works.

Anyone know anything or know how to get this to work?.

Share this post


Link to post

I researched this in VW2008 and 2009 back in the fall of 2008. I never found a way to get nested includes to work.

I suggest that you file another bug report on it.

If you are using an external editor like BBEdit, you may be able to do the includes there rather than in VS. Textwrangler does not do includes.

Sorry,

Pat

Share this post


Link to post

I use nested includes extensively in Reshaper. Fifty-five files, three levels deep; No problem. I don't know if this is necessary, but I use the full file path name, and I also use the Windows path name delimiters "/" for cross platform stability.

Raymond

Share this post


Link to post

Raymond

I looked at Reshaper- looks like this is for Windows platform, and for coding C?.

Your signature says your on a macMINI. Do you use Reshaper on Mac.

Share this post


Link to post

Yes, Reshaper is written in VectorScript for Vectorworks, so it will work (should work) on both Mac and Windows platforms equally. That has been one of the challenges in its development, to make it work the same on both as there are minor differences in the way VS performs on the two machines (mostly in the Modern Dialog calls). The sad thing is when I get it right, nobody notices. :-p

If you'd like to try it, send me the last 6 digits of your VW serial number and I'll send you a copy and a DEMO KEY that will enable Reshaper for 30 days. Also, tell me what version of the software you want it for. From your signature I'd guess you'd want it for VW 2009, but I have versions of Reshaper working from VW 11 to VW 15 (2010).

Raymond

PS - Oh yeah, an address might help. info@siriussolutions.net

Edited by MullinRJ

Share this post


Link to post

My apologies Raymond.

I thought reshaper was a code editor, haha.

http://www.jetbrains.com/resharper/beta/beta.html

Anyhow after your post I did research and am keen to try out your Reshaper. I emailed you.

Back to the nested $includes.

Can you please cut and paste your nested include path that is working. Then I can check my file path structure against yours.

Thanks

Share this post


Link to post

More testing.... Yes nested worked!

I did have a the include file structure looking like this:

{$INCLUDE /Dropbox/AssemblyScript/Plug-Ins/0TestShell2}

Which works fine inside the VW plug in script.

To get the nested path to work I changed it to

{$INCLUDE Lap13 HD:Dropbox:AssemblyScript:Plug-Ins:0TestShell2}

Okay good. BUT now I have a new problem.

I use Dropbox (www.dropbox.com) to sync my Vectorworks Setting across my three computers. Each computer has dropbox installed and sharing a folder VW 2009 Settings. On each computer I set the VW preference I set my user folder to this folder.

Hence

IF

I add a plug-in and edit my workspace on one computer

THEN

Dropbox updates the folders on the other computers- thus we have identical set up on all computers in the office by just changing one. This work a treat.

BUT

All my plugins use $Include with the file path: /dropbox/../../

if I go and change my file paths to using Lap13 HD:Dropbox:..:.. then as each computer has a different drive name I will have a different problem.

Bugger.

Share this post


Link to post

Another option might be to use an alias of the file in the dropbox on each computer's drive and point to the alias. I use aliases often with plug-in development so that my files stay in a project folder and an alias of the folder containing the plug-ins and includes is placed in the VW plug-ins folder. So they should work...

Matt

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...