Hi,
Just going through the 12d snippet training and was wondering if the snippet clip library and 12d snippet language was something that was available to download.
New to the coding side of things and want to make it as easy as possible, also to look visually clean as per the training vid.
any help would be appreciated.
Cheers
12D snippet Clip Library
-
- Posts: 4
- Joined: Wed Aug 26, 2020 9:08 am
Re: 12D snippet Clip Library
Also when following the training vid to the letter, i seem to get errors as soon as i add in the parameters, snippet interface looks right but the output window throws up error:parse error and a line and column, that i cant make sense of
-
- Posts: 1131
- Joined: Fri Oct 21, 2005 7:51 am
Re: 12D snippet Clip Library
This might be the formatting highlighter
https://www.advanced12d.com/mtf-snippet ... hlighting/
https://www.advanced12d.com/mtf-snippet ... hlighting/
-
- Posts: 3175
- Joined: Fri Oct 21, 2005 2:46 pm
Re: 12D snippet Clip Library
What version of 12d Model are you running? There are various MTF snippets shipped with 12d Model and they are available in the Library (under C:\Program Files\12d\12dmodel\......\Library). If you post the error message and a (small) sample of the snippet you're trying, we might be able to help.Bayne Maher wrote: ↑Wed Aug 26, 2020 10:16 am Also when following the training vid to the letter, i seem to get errors as soon as i add in the parameters, snippet interface looks right but the output window throws up error:parse error and a line and column, that i cant make sense of
-
- Posts: 4
- Joined: Wed Aug 26, 2020 9:08 am
Re: 12D snippet Clip Library
Hi Mathew,
Running V14C2h, I have access to the default snippets also local authority ones, but I want to create one specific for some sports work i do.
I can add kerb, footpath drain, snippets together but thought I would have a go at creating one that encompasses the 3 elements in 1 snippet, that have some parameters, footpath width xfall, ect.
A very simple one (i thought) that worked ok until i added the parameters..
Running V14C2h, I have access to the default snippets also local authority ones, but I want to create one specific for some sports work i do.
I can add kerb, footpath drain, snippets together but thought I would have a go at creating one that encompasses the 3 elements in 1 snippet, that have some parameters, footpath width xfall, ect.
A very simple one (i thought) that worked ok until i added the parameters..
-
- Posts: 4
- Joined: Wed Aug 26, 2020 9:08 am
Re: 12D snippet Clip Library
This is the snippet, the parse error gives a line and col, -"named position"
// Footpath
// PARAMETER WIDTH REAL "Footpath width" 1.000 OPTIONAL
// PARAMETER XFALL REAL "Footpath xfall" -2.5 OPTIONAL
// PARAMETER HEIGHT REAL "Footpath height" unknown OPTIONAL
// Edge Strip
insert "Design=>EF" "vis grass4" 0.000 0.000 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>KT" "shade 32" 0.001 $(HEIGHT) unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>KB" "shade 32" $(WIDTH) 0.000 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>FP" "vis grass1" 0.001 $(HEIGHT) unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
// Add Path with Spoon Drain
insert "Design=>SF" "vis concrete3" $(WIDTH) unknown $(XFALL) $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>SI" "vis concrete3" 0.300 -0.040 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>SB" "vis concrete1" 0.300 0.040 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
// Footpath
// PARAMETER WIDTH REAL "Footpath width" 1.000 OPTIONAL
// PARAMETER XFALL REAL "Footpath xfall" -2.5 OPTIONAL
// PARAMETER HEIGHT REAL "Footpath height" unknown OPTIONAL
// Edge Strip
insert "Design=>EF" "vis grass4" 0.000 0.000 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>KT" "shade 32" 0.001 $(HEIGHT) unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>KB" "shade 32" $(WIDTH) 0.000 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>FP" "vis grass1" 0.001 $(HEIGHT) unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
// Add Path with Spoon Drain
insert "Design=>SF" "vis concrete3" $(WIDTH) unknown $(XFALL) $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>SI" "vis concrete3" 0.300 -0.040 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
insert "Design=>SB" "vis concrete1" 0.300 0.040 unknown $(_SCH) 0 $(_ECH) 0 absolute extra_start extra_end
-
- Posts: 3175
- Joined: Fri Oct 21, 2005 2:46 pm
Re: 12D snippet Clip Library
Change the unknown bit to 0.0 or a valid Real value.Bayne Maher wrote: ↑Wed Aug 26, 2020 11:36 am // PARAMETER HEIGHT REAL "Footpath height" unknown OPTIONAL
Code: Select all
// PARAMETER HEIGHT REAL "Footpath height" 0.0 OPTIONAL
-
- Posts: 1745
- Joined: Fri Oct 21, 2005 8:47 am
Re: 12D snippet Clip Library
Those parameters cannot be optional either.