Jump to content
Developer Wiki and Function Reference Links ×

Creating a wall with dotted center line


WhoCanDo

Recommended Posts

Hi,

 

I want to create a wall type with a dotted line cavity. image.thumb.png.8fdb9c9d577b8f0a7258f727b0a9d532.png

 

In VW2018 this worked ..

 

procedure test;
var Response : boolean;
begin
Response := DeleteAllComponents (nil);
Response := InsertNewComponentN (nil, 1,  5, 0, 10,  6,  0, 2);
Response := InsertNewComponentN (nil, 2, 20, 0,  6, 10, -2, 0);
SetTool (13);
end;
Run (test);
 

However in VW2019, it doesn't.

 

It seems that the -2 is the cause of the problem. -2 is the line type "Dash Style-2" from the standard pallet.

 

If -2 is changed to 2 in this script, the wall looks like above with a solid cavity line.

 

Can anyone suggest what changed between VW2018 & VW2019?

 

Please note: that I was using InsertNewComponent in VW2018 but now I am forced to use InsertNewComponentN 

Link to comment

Thanks Julian, but that didn't work either ☹️

 

procedure test;
var Response : boolean;
begin
Response := DeleteAllComponents (nil);
Response := InsertNewComponentN (nil, 1,  5, 0, 10,  6, 0, 2);
Response := InsertNewComponentN (nil, 2, 20, 0,  6, 10, Name2Index('Dash Style-2'), 0);
SetTool (13);
end;
Run (test);

Link to comment

Sorry you will need to put a minus in front of Name2Index, but also note that you may not see the line is dashed because the line from the adjoining component is solid, so you might need to do something like this:

 

procedure test;
var Response : boolean;
begin
Response := DeleteAllComponents (nil);
Response := InsertNewComponentN (nil, 1,  5, 0, 10,  0, 0, 2);
Response := InsertNewComponentN (nil, 2, 20, 0,  6, 10, -Name2Index('Dash Style-2'), 0);
SetTool (13);
end;
Run (test); 

Link to comment

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.

×
×
  • Create New...