Skip to content

Commit f0c6183

Browse files
committed
#62 WorksharingEvent nodes
1 parent 9375e1b commit f0c6183

3 files changed

+540
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"Uuid": "7d8237c3-d775-4a7d-b8f2-d4568882086e",
3+
"IsCustomNode": true,
4+
"Category": "Journalysis.Journal.JournalLine.Query",
5+
"Description": "Returns the date and time of a given JournalWorksharingEvent",
6+
"Name": "JournalWorksharingEvent.DateTime",
7+
"ElementResolver": {
8+
"ResolutionMap": {
9+
"File": {
10+
"Key": "DSCore.IO.File",
11+
"Value": "DSCoreNodes.dll"
12+
},
13+
"System.IO.FileInfo": {
14+
"Key": "System.IO.FileInfo",
15+
"Value": ""
16+
},
17+
"List.Empty": {
18+
"Key": "DSCore.List",
19+
"Value": "DSCoreNodes.dll"
20+
}
21+
}
22+
},
23+
"Inputs": [],
24+
"Outputs": [],
25+
"Nodes": [
26+
{
27+
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
28+
"NodeType": "PythonScriptNode",
29+
"Code": "import clr\r\n\r\ndef process_input(func, input):\r\n\tif isinstance(input, list): return [func(x) for x in input]\r\n\telse: return func(input)\r\n\t\r\ndef journalWSEventDateTime(jwsevent):\r\n\tif jwsevent.__repr__() == 'JournalWorksharingEvent': return jwsevent.DateTime\r\n\telse: return None\r\n\r\nOUT = process_input(journalWSEventDateTime,IN[0])",
30+
"Engine": "CPython3",
31+
"VariableInputPorts": true,
32+
"Id": "40ef5f3c2b07422ea496553796283f77",
33+
"Inputs": [
34+
{
35+
"Id": "c686a4eb92b54cc7baccce8c3f233bd8",
36+
"Name": "IN[0]",
37+
"Description": "Input #0",
38+
"UsingDefaultValue": false,
39+
"Level": 2,
40+
"UseLevels": false,
41+
"KeepListStructure": false
42+
}
43+
],
44+
"Outputs": [
45+
{
46+
"Id": "7ea08e0d12644375a76926691e1f2460",
47+
"Name": "OUT",
48+
"Description": "Result of the python script",
49+
"UsingDefaultValue": false,
50+
"Level": 2,
51+
"UseLevels": false,
52+
"KeepListStructure": false
53+
}
54+
],
55+
"Replication": "Disabled",
56+
"Description": "Führt ein eingebettetes Python-Skript aus."
57+
},
58+
{
59+
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
60+
"NodeType": "InputNode",
61+
"Parameter": {
62+
"Name": "journalWorksharingEvent",
63+
"TypeName": "var",
64+
"TypeRank": -1,
65+
"DefaultValue": null,
66+
"Description": ""
67+
},
68+
"Id": "4767d151a8dc448b943292173a9738c3",
69+
"Inputs": [],
70+
"Outputs": [
71+
{
72+
"Id": "8ae3aa0911f34b85b0abba1d1a2c99c9",
73+
"Name": "",
74+
"Description": "Symbol",
75+
"UsingDefaultValue": false,
76+
"Level": 2,
77+
"UseLevels": false,
78+
"KeepListStructure": false
79+
}
80+
],
81+
"Replication": "Disabled",
82+
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
83+
},
84+
{
85+
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
86+
"NodeType": "OutputNode",
87+
"ElementResolver": null,
88+
"Symbol": "dateTime",
89+
"Id": "22c7da327e7a4831b3b0ba3c3758e54b",
90+
"Inputs": [
91+
{
92+
"Id": "0880c7ef019540e39244accf33b0174a",
93+
"Name": "",
94+
"Description": "",
95+
"UsingDefaultValue": false,
96+
"Level": 2,
97+
"UseLevels": false,
98+
"KeepListStructure": false
99+
}
100+
],
101+
"Outputs": [],
102+
"Replication": "Disabled",
103+
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
104+
}
105+
],
106+
"Connectors": [
107+
{
108+
"Start": "7ea08e0d12644375a76926691e1f2460",
109+
"End": "0880c7ef019540e39244accf33b0174a",
110+
"Id": "f13f508b15514ef68f095400e9c3c885"
111+
},
112+
{
113+
"Start": "8ae3aa0911f34b85b0abba1d1a2c99c9",
114+
"End": "c686a4eb92b54cc7baccce8c3f233bd8",
115+
"Id": "15e98a7febd44471b955a3faebf4da8b"
116+
}
117+
],
118+
"Dependencies": [],
119+
"NodeLibraryDependencies": [],
120+
"Author": "None provided",
121+
"Bindings": [],
122+
"View": {
123+
"Dynamo": {
124+
"ScaleFactor": 1.0,
125+
"HasRunWithoutCrash": false,
126+
"IsVisibleInDynamoLibrary": true,
127+
"Version": "2.12.1.8246",
128+
"RunType": "Manual",
129+
"RunPeriod": "1000"
130+
},
131+
"Camera": {
132+
"Name": "Hintergrundvorschau",
133+
"EyeX": -17.0,
134+
"EyeY": 24.0,
135+
"EyeZ": 50.0,
136+
"LookX": 12.0,
137+
"LookY": -13.0,
138+
"LookZ": -58.0,
139+
"UpX": 0.0,
140+
"UpY": 1.0,
141+
"UpZ": 0.0
142+
},
143+
"NodeViews": [
144+
{
145+
"ShowGeometry": true,
146+
"Name": "Python Script",
147+
"Id": "40ef5f3c2b07422ea496553796283f77",
148+
"IsSetAsInput": false,
149+
"IsSetAsOutput": false,
150+
"Excluded": false,
151+
"X": 250.0,
152+
"Y": 0.0
153+
},
154+
{
155+
"ShowGeometry": true,
156+
"Name": "Input",
157+
"Id": "4767d151a8dc448b943292173a9738c3",
158+
"IsSetAsInput": false,
159+
"IsSetAsOutput": false,
160+
"Excluded": false,
161+
"X": 0.0,
162+
"Y": 0.0
163+
},
164+
{
165+
"ShowGeometry": true,
166+
"Name": "Output",
167+
"Id": "22c7da327e7a4831b3b0ba3c3758e54b",
168+
"IsSetAsInput": false,
169+
"IsSetAsOutput": false,
170+
"Excluded": false,
171+
"X": 449.0,
172+
"Y": 0.0
173+
}
174+
],
175+
"Annotations": [],
176+
"X": 0.0,
177+
"Y": 0.0,
178+
"Zoom": 1.0
179+
}
180+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"Uuid": "d74df289-3c8a-48d3-958d-6b031c3ef7c0",
3+
"IsCustomNode": true,
4+
"Category": "Journalysis.Journal.JournalLine.Query",
5+
"Description": "Returns the session ID (used in the worksharing log of the central file) of a given JournalWorksharingEvent",
6+
"Name": "JournalWorksharingEvent.SessionID",
7+
"ElementResolver": {
8+
"ResolutionMap": {
9+
"File": {
10+
"Key": "DSCore.IO.File",
11+
"Value": "DSCoreNodes.dll"
12+
},
13+
"System.IO.FileInfo": {
14+
"Key": "System.IO.FileInfo",
15+
"Value": ""
16+
},
17+
"List.Empty": {
18+
"Key": "DSCore.List",
19+
"Value": "DSCoreNodes.dll"
20+
}
21+
}
22+
},
23+
"Inputs": [],
24+
"Outputs": [],
25+
"Nodes": [
26+
{
27+
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
28+
"NodeType": "PythonScriptNode",
29+
"Code": "import clr\r\n\r\ndef process_input(func, input):\r\n\tif isinstance(input, list): return [func(x) for x in input]\r\n\telse: return func(input)\r\n\t\r\ndef journalWSEventID(jwsevent):\r\n\tif jwsevent.__repr__() == 'JournalWorksharingEvent': return jwsevent.SessionID\r\n\telse: return None\r\n\r\nOUT = process_input(journalWSEventID,IN[0])",
30+
"Engine": "CPython3",
31+
"VariableInputPorts": true,
32+
"Id": "70db7170a31e41aabbd5d3c287f8c015",
33+
"Inputs": [
34+
{
35+
"Id": "98649b79d20f414fad29bc282bfb74a3",
36+
"Name": "IN[0]",
37+
"Description": "Input #0",
38+
"UsingDefaultValue": false,
39+
"Level": 2,
40+
"UseLevels": false,
41+
"KeepListStructure": false
42+
}
43+
],
44+
"Outputs": [
45+
{
46+
"Id": "16dd403e5d3f4ac6a7d60ecd351ca0c6",
47+
"Name": "OUT",
48+
"Description": "Result of the python script",
49+
"UsingDefaultValue": false,
50+
"Level": 2,
51+
"UseLevels": false,
52+
"KeepListStructure": false
53+
}
54+
],
55+
"Replication": "Disabled",
56+
"Description": "Führt ein eingebettetes Python-Skript aus."
57+
},
58+
{
59+
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
60+
"NodeType": "InputNode",
61+
"Parameter": {
62+
"Name": "journalWorksharingEvent",
63+
"TypeName": "var",
64+
"TypeRank": -1,
65+
"DefaultValue": null,
66+
"Description": ""
67+
},
68+
"Id": "724ae08ac51645649d55bed02e4c7e8a",
69+
"Inputs": [],
70+
"Outputs": [
71+
{
72+
"Id": "e40976e0c47d41c5a0a35fb28907b941",
73+
"Name": "",
74+
"Description": "Symbol",
75+
"UsingDefaultValue": false,
76+
"Level": 2,
77+
"UseLevels": false,
78+
"KeepListStructure": false
79+
}
80+
],
81+
"Replication": "Disabled",
82+
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
83+
},
84+
{
85+
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
86+
"NodeType": "OutputNode",
87+
"ElementResolver": null,
88+
"Symbol": "str",
89+
"Id": "6847aebb9c2d4d7eae1cf7ceb8ede3bb",
90+
"Inputs": [
91+
{
92+
"Id": "60308fc1b35d480bbb4ab052b0c3199c",
93+
"Name": "",
94+
"Description": "",
95+
"UsingDefaultValue": false,
96+
"Level": 2,
97+
"UseLevels": false,
98+
"KeepListStructure": false
99+
}
100+
],
101+
"Outputs": [],
102+
"Replication": "Disabled",
103+
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
104+
}
105+
],
106+
"Connectors": [
107+
{
108+
"Start": "16dd403e5d3f4ac6a7d60ecd351ca0c6",
109+
"End": "60308fc1b35d480bbb4ab052b0c3199c",
110+
"Id": "62e3da41882e405e867b03b4aefd4553"
111+
},
112+
{
113+
"Start": "e40976e0c47d41c5a0a35fb28907b941",
114+
"End": "98649b79d20f414fad29bc282bfb74a3",
115+
"Id": "b4f9062c08924acda75ffb37c6003ca1"
116+
}
117+
],
118+
"Dependencies": [],
119+
"NodeLibraryDependencies": [],
120+
"Author": "None provided",
121+
"Bindings": [],
122+
"View": {
123+
"Dynamo": {
124+
"ScaleFactor": 1.0,
125+
"HasRunWithoutCrash": false,
126+
"IsVisibleInDynamoLibrary": true,
127+
"Version": "2.12.1.8246",
128+
"RunType": "Manual",
129+
"RunPeriod": "1000"
130+
},
131+
"Camera": {
132+
"Name": "Hintergrundvorschau",
133+
"EyeX": -17.0,
134+
"EyeY": 24.0,
135+
"EyeZ": 50.0,
136+
"LookX": 12.0,
137+
"LookY": -13.0,
138+
"LookZ": -58.0,
139+
"UpX": 0.0,
140+
"UpY": 1.0,
141+
"UpZ": 0.0
142+
},
143+
"NodeViews": [
144+
{
145+
"ShowGeometry": true,
146+
"Name": "Python Script",
147+
"Id": "70db7170a31e41aabbd5d3c287f8c015",
148+
"IsSetAsInput": false,
149+
"IsSetAsOutput": false,
150+
"Excluded": false,
151+
"X": 250.0,
152+
"Y": 0.0
153+
},
154+
{
155+
"ShowGeometry": true,
156+
"Name": "Input",
157+
"Id": "724ae08ac51645649d55bed02e4c7e8a",
158+
"IsSetAsInput": false,
159+
"IsSetAsOutput": false,
160+
"Excluded": false,
161+
"X": 0.0,
162+
"Y": 0.0
163+
},
164+
{
165+
"ShowGeometry": true,
166+
"Name": "Output",
167+
"Id": "6847aebb9c2d4d7eae1cf7ceb8ede3bb",
168+
"IsSetAsInput": false,
169+
"IsSetAsOutput": false,
170+
"Excluded": false,
171+
"X": 449.0,
172+
"Y": 0.0
173+
}
174+
],
175+
"Annotations": [],
176+
"X": 0.0,
177+
"Y": 0.0,
178+
"Zoom": 1.0
179+
}
180+
}

0 commit comments

Comments
 (0)