yh | YAML syntax highlighter to bring colours to kubectl output | YAML Processing library
kandi X-RAY | yh Summary
kandi X-RAY | yh Summary
A dummy syntax highlighter that brings colours to YAML output, jq style. This project starts with the author's incapacity to give up on colours while playing with kubernetes cli and YAML output (kubectl get something -o yaml). Unable to find another YAML highlighter where he could simply dump something on, with little to no ~~respect~~ expectations, and inspired by the recent Go training, he decided to write one from scratch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of yh
yh Key Features
yh Examples and Code Snippets
Community Discussions
Trending Discussions on yh
QUESTION
I am trying to understand a Mathematica code so that I can replicate it in python:
My function in Mathematica -
Deulab[c_, yh1_, a_, b_] := {c - (EULab[c, yh1, a, b] - 1) * 0.3, yh1, a, b}
where I have already defined EULab
above.
What does the curly bracket mean and how can I interpret this code and then replicate it in python?
Mathematica
...ANSWER
Answered 2021-May-25 at 10:46Have you tried using the wolfram client?
https://reference.wolfram.com/language/WolframClientForPython/
and their reference docs?
https://reference.wolfram.com/language/ref/List.html
{a,b,c} represents a vector.
But in this case you've 4 elements, so it looks like a list.
https://reference.wolfram.com/language/ref/Apply.html
@@ represents apply
So that'd be applying a function, i.e. f[a,b,c,d]
QUESTION
I came across this very strange thing in this code.
...ANSWER
Answered 2021-May-27 at 13:57float is a type whose size is 4 bytes.
When you perform pointer arithmetic, you calculate an address shifted from the original address by a number of times the size of the type.
i.e. pd+1 points to an address one float after the variable d.
Typically your compiler may successiveily put all your declared variables in sequence in memory: d, pd, c and yh as they're declared in that order; but there is no guarantee there, it may chose to do otherwise.
If your compiler elects to place the variable d, then the variable c in two contiguous 32-bits space in memory, then typically, the following assertion will be true:
QUESTION
I have a panel dataset with the share of young people in a country(variable is named value) for 30 OECD countries for the years 1960-2050.
The data was only available at an annual frequency, but I want it at a semiannual frequency, so I want to expand and interpolate the data. The goal is to have the value for each country for every half year.
I have expanded the dataset and assigned the duplicates dupe=1 to keep track. Then I have generated a variable named year_half taking the value 1 for the originals (first half of the year) and the value 2 for the duplicates (second half of the year). Then I interpolate. The code is:
...ANSWER
Answered 2021-Mar-17 at 17:00This seems to be the essence of what you are doing, except that the panel structure requires a repetition by country:
.
QUESTION
The problem: I'm on the overview and I select a sensor. I edit the name of a sensor. I get send back to overview of all sensors, the name is indeed changed. Then I click on another sensor and without changing anything I save it, then it gets the name of the previous changed sensor. So the field (which is required) is empty. But it still gets through and takes the name of the previous sensor. I have made a video of this problem -> https://www.youtube.com/watch?v=yH-4bW0JEWI.
I tried setting a defaultvalue, but the name of the previous sensor overwrites this if I don't change anything and do click on save. I also tried to reset FormData.name. It does get reset, but when I click on another sensor it magically gets filled with the name of the previous sensor.
So here is my code:
...ANSWER
Answered 2021-Mar-11 at 15:17Still have the problem when you assign rules? not null etc.
QUESTION
I am trying to filter a signal using a Gaussian function.
This is the code I have come up with.
...ANSWER
Answered 2021-Feb-19 at 21:27The signal is amplified because the filter is not normalized. You can check with plot(abs(gh))
(or better plot(fftshift(abs(gh)))
) that its frequency response has a large magnitude.
To avoid this you should normalize the filter. There are several possible ways to do it. For example, to achieve unit gain for zero frequency use
QUESTION
I have some html pages that should have 1 table, some rows and 2 columns, I'm trying to convert these to cvs tables. I thought to loop through the rows and get the columns however I can't get only the part inside the ids (e.g. id="(-) Additional deductions of AT1 Capital due to Article 3 CRR"). Is there a way just to extract the content of id for each row?
code
...ANSWER
Answered 2021-Feb-04 at 22:45How about replacing the last line with one of:
definitions.append([td.text for td in i.find_all('td')])
definitions.append([td['id'] for td in i.find_all('td')])
(per @Justin Ezequiel's comment)
This will get either the text
or the value of id
for each one
EDIT per comment:
This is how you could do it, basically you need to save a tuple of the text of both items in each td
.
The second part is one way to write it to a file
QUESTION
I have been trying with some matplotlib functions, but it does not come out, I tried with the one of plt.hlines and plt.vlines to put them but it did not work for me.
This is my code, I need my grid to move between the blue lines.
ANSWER
Answered 2021-Jan-15 at 17:51You can create a polygon by combining the curves from xprima
and ctprima
. To create a closed polygon, one of the curves need to be reversed. The x-values for xprima
are xt
, while for ctprima
they are ct
. So, the x-values for the polygon are np.append(xt, ct[::-1])
and similar for the y-values. To create the polygon, Polygon
needs the xy positions as an Nx2
array which can be created using np.vstack
and transposing (.T
).
This polygon can be either used to clip the gridlines, or could just be used to be "hatched" without the need for the gridlines.
The gridlines can be created via for-loops: [plt.axvline(x=i, ymin=0.5, ymax=0.9) for i in range(1, 9)]
. If the result is stored in an array, it can be used to call .set_clip_path(polygon)
on them.
QUESTION
I am trying to find a value score
, which can be calculated imperatively from two equal length lists Xs, Ys
as:
ANSWER
Answered 2021-Jan-15 at 16:26If you are using constraint solver (such as cp
, sat
, etc) then simply using sum
should do the job:
QUESTION
I am having some trouble with a Python script for data management/visualization.
I am defining some classes to help with the data bounding. However, I am encountering a problem when trying to define a class that inherits from another one:
...ANSWER
Answered 2020-Dec-17 at 09:44Use inheritance: https://www.w3schools.com/python/python_inheritance.asp
QUESTION
Here's the report:
[11/22/2020 19:32:37] Job information:
"CommandLine":[
"$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[UpdateParameters].path)\" /ilod \"$(args[InventorDoc].path)\" /paramFile \"$(args[InventorParams].path)\" /p",
"$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[CreateSVF].path)\" /ilod \"$(args[InventorDoc].path)\"",
"$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[CreateBOM].path)\" /i \"$(args[InventorDoc].path)\""
]
"Settings":{
"dasreportfaileduploadoptional": {
"value": "true",
"isEnvironmentVariable": true
}
}
"Id":"8a15fb482c6145e7a7d18b6abc028a57"
"ActivityId":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateProject+green"
"Engine.Id":"Autodesk.Inventor!16"
"Apps": [
"App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateParameters!244",
"App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateSVF!258",
"App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateBOM!244"
]
"BoundArguments":{
"InventorDoc": {
"localName": "unzippedIam",
"pathInZip": "KGYP19015A2.iam",
"url": "https://developer.api.autodesk.com/Masked:ngtwUHWkB+53dSafxxeKklHjaAY="
},
"InventorParams": {
"url": "https://developer.api.autodesk.com/Masked:nSkfbv16UKUVkda1fLPHnLrIQ2c="
},
"OutputModelIAMFile": {
"zip": true,
"optional": true,
"localName": "unzippedIam",
"url": "https://developer.api.autodesk.com/Masked:IJMn49m5OR7Rp0d/qIbRoeMVgfA=",
"verb": "put"
},
"OutputModelIPTFile": {
"optional": true,
"localName": "part.ipt",
"url": "https://developer.api.autodesk.com/Masked:9Hgb+t/yh/mlcaYvtNNdlKoLzOc=",
"verb": "put"
},
"UpdateParametersOutput": {
"localName": "documentParams.json",
"url": "https://developer.api.autodesk.com/Masked:oX2a3yEb6BuYNOH2aw+Oz8muQM0=",
"verb": "put"
},
"CreateSVFOutput": {
"zip": true,
"localName": "SvfOutput",
"url": "https://developer.api.autodesk.com/Masked:zfJkvzf3Rh9d6x4gSQ01cBfH+0I=",
"verb": "put"
},
"CreateBOMOutput": {
"localName": "bom.json",
"url": "https://developer.api.autodesk.com/Masked:RfRpLNgQ7PEIV6mlNf1Ny8jvxUQ=",
"verb": "put"
},
"onProgress": {
"ondemand": true,
"url": "https://wlnr5sjl3a.execute-api.us-east-1.amazonaws.com/Masked:UK/Z3b5X3xUWxXiH6C9r9i9UlRU=",
"headers": {
"Content-Type": "application/json",
"x-das-authorize": "awssigv4(us-east-1)",
"x-ads-token-data": "{\"access_token\":{\"client_id\":\"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5\"},\"scope\":\"code:all\",\"expires_in\":3406,\"client_id\":\"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5\"}"
},
"verb": "put"
}
}
"Quotas":{
"limitProcessingTimeSec": 900,
"limitTotalUncompressedAppsSizeInMB": 500
}
[11/22/2020 19:32:37] Folder "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam" has been created.
[11/22/2020 19:32:37] Folder "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\SvfOutput" has been created.
[11/22/2020 19:32:37] Starting work item 8a15fb482c6145e7a7d18b6abc028a57
[11/22/2020 19:32:37] Start download phase.
[11/22/2020 19:32:37] Start downloading input: verb - 'GET', url - 'https://developer.api.autodesk.com/oss/v2/signedresources/437b5b9f-5a36-47d3-88d4-d90e267d9dd5?region=US'
[11/22/2020 19:32:37] Start downloading input: verb - 'GET', url - 'https://developer.api.autodesk.com/oss/v2/signedresources/f0738489-7894-4487-9773-9686aecc6390?region=US'
[11/22/2020 19:32:38] '675' bytes have been written to T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\0c74b265385e4634ac3dcc233e952dca.input-params.json.
[11/22/2020 19:32:38] End downloading file 'https://developer.api.autodesk.com/oss/v2/signedresources/f0738489-7894-4487-9773-9686aecc6390?region=US'.
[11/22/2020 19:32:41] '87952255' bytes have been written to T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\zip_467.zip.
[11/22/2020 19:32:41] End downloading file 'https://developer.api.autodesk.com/oss/v2/signedresources/437b5b9f-5a36-47d3-88d4-d90e267d9dd5?region=US'.
[11/22/2020 19:32:41] Error: Failed to parse the ETransmit Archive: System.ArgumentException: An item with the same key has already been added. Key:
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at CoreEngineRunner.DownloadItem.<>c__DisplayClass33_0.g__TestArchive|0(Encoding& encoding, String& resolvedName, String& codePage)
at CoreEngineRunner.DownloadItem.TryParseProductWorkFlowArchive(Stream stream, String hintMatchName, String& resolvedName, String& codePage)
[11/22/2020 19:32:44] T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\zip_467.zip has been unpacked to folder T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam.
[11/22/2020 19:32:44] End download phase successfully.
[11/22/2020 19:32:44] Start preparing script and command line parameters.
[11/22/2020 19:32:44] Command line: [ /al "T:\Aces\Applications\f4d2283bfec7651de654f6e5a63411d2.rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateParameters[244].package" /ilod "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam" /paramFile "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\0c74b265385e4634ac3dcc233e952dca.input-params.json" /p]
[11/22/2020 19:32:44] Command line: [ /al "T:\Aces\Applications\f249bab2b1092803f8b375e5bec77255.rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateSVF[258].package" /ilod "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam"]
[11/22/2020 19:32:44] Command line: [ /al "T:\Aces\Applications\0d9312d28a9bc584cc602b0d6f071f2f.rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateBOM[244].package" /i "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam"]
[11/22/2020 19:32:44] End preparing script and command line parameters.
[11/22/2020 19:32:44] Start script phase.
[11/22/2020 19:32:44] ### Command line arguments: /isolate HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_8a15fb482c6145e7a7d18b6abc028a57 "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\userdata" /exe "T:\Aces\AcesRoot\25.00\coreEngine\Exe\InventorCoreConsole.exe" /al "T:\Aces\Applications\f4d2283bfec7651de654f6e5a63411d2.rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateParameters[244].package" /ilod "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam" /paramFile "T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\0c74b265385e4634ac3dcc233e952dca.input-params.json" /p.
[11/22/2020 19:32:44] Start Inventor Core Engine standard output dump.
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : InventorCoreConsole.exe: 25.0.18300.0
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : Starting Inventor Server.
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : Started Inventor Server 2021.1 (Build 251245000, 245) (25, 10, 24500, 0000)
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : Loading plug-in: iLogic Plugin
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : Activating plug-in: iLogic Plugin
[11/22/2020 19:32:44] iLogic Plugin: initializing...
[11/22/2020 19:32:44] InventorCoreConsole.exe Information: 0 : Creating default project file with name: FDADefault at T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Activating default project T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\FDADefault.ipj
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Getting Inventor plug-in.
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Plug-in: UpdateParametersPlugin
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Activating plug-in: UpdateParametersPlugin
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : : UpdateParametersPlugin (1.0.0.10): initializing...
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Executing 'RunWithArguments' method on Automation object.
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : Opening /ilod document name: T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : LastActiveDesignViewRepresentation: Default
[11/22/2020 19:32:45] InventorCoreConsole.exe Information: 0 : LastActiveLevelOfDetailRepresentation: Master
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Full document name: T:\Aces\Jobs\8a15fb482c6145e7a7d18b6abc028a57\unzippedIam\KGYP19015A2.iam
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : ExecWithArguments called with KGYP19015A2.iam with 6 arguments
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : HeartBeating every 50000ms.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Read parameters
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : {"WallConstruction":{"value":"\u0022Fire Rated Construction\u0022","unit":"Text","values":["\u0022Standard Construction\u0022","\u0022Insulated 50mm\u0022","\u0022Insulated 75mm\u0022","\u0022Insulated 100mm\u0022","\u0022Acoustic 2mm\u0022","\u0022Fire Rated Construction\u0022","\u0022SR2 Construction\u0022","\u0022SR3 Construction\u0022","\u0022SR4 Construction\u0022"],"readonly":false,"label":"WallConstruction"},"Width":{"value":"3500","unit":"Text","values":[],"readonly":false,"label":"Width"},"Length":{"value":"3000","unit":"Text","values":[],"readonly":false,"label":"Length"},"Height":{"value":"3000","unit":"Text","values":[],"readonly":false,"label":"Height"}}
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Applying '"Fire Rated Construction"' to 'WallConstruction'
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on update for "Fire Rated Construction" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Applying '3500' to 'Width'
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on update for "3500" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Applying '3000' to 'Length'
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on update for "3000" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Applying '3000' to 'Height'
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on update for "3000" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for 1.0 mm and unit type mm / 11269
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for 1.0 mm and unit type mm / 11269
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for 1.0 mm and unit type mm / 11269
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectPanel: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for HardwareOperation: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectHardware2: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectRef: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for Distance: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectType: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectHardware: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectHardware3: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for SelectHardware4: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "Fire Rated Construction" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for WallConstruction: Could not convert argument 1 for call to GetPreciseStringFromValue.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "3500" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for Width: Error HRESULT E_FAIL has been returned from a call to a COM component.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "3000" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for Height: Error HRESULT E_FAIL has been returned from a call to a COM component.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Checking expression validity on extraction for "3000" and unit type Text / 11346
[11/22/2020 19:32:46] InventorCoreConsole.exe Error: 0 : Can't get nominalValue for Length: Error HRESULT E_FAIL has been returned from a call to a COM component.
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Updating
[11/22/2020 19:32:46] InventorCoreConsole.exe Information: 0 : Saving
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Found 1 iLogic forms
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : - Form 1
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Using 'Form 1' form as a parameter filter
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Closing
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Ending HeartBeat
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Performing iLogic diagnostics...
[11/22/2020 19:32:47] InventorCoreConsole.exe Error: 0 : iLogic error
[11/22/2020 19:32:47] Context: RuleRunning
[11/22/2020 19:32:47] Details: System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
[11/22/2020 19:32:47] at CodeoDA.KGYP19015A2Rule..ctor()
[11/22/2020 19:32:47] at SalesConfigurator.Class1..ctor()
[11/22/2020 19:32:47] at ThisRule.Booster()
[11/22/2020 19:32:47] at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
[11/22/2020 19:32:47] at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
[11/22/2020 19:32:47] InventorCoreConsole.exe Error: 0 : iLogic error
[11/22/2020 19:32:47] Context: RuleRunning
[11/22/2020 19:32:47] Details: System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
[11/22/2020 19:32:47] at CodeoDA.KGYP19015A2Rule..ctor()
[11/22/2020 19:32:47] at SalesConfigurator.Class1..ctor()
[11/22/2020 19:32:47] at ThisRule.Booster()
[11/22/2020 19:32:47] at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
[11/22/2020 19:32:47] at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : End of iLogic diagnostics...
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : Deactivating plug-in: UpdateParametersPlugin
[11/22/2020 19:32:47] InventorCoreConsole.exe Information: 0 : : UpdateParametersPlugin: deactivating...
[11/22/2020 19:32:47] Processing failed
[11/22/2020 19:32:48] End Inventor Core Engine standard output dump.
[11/22/2020 19:32:48] Error: Application InventorCoreConsole.exe exits with code -1 which indicates an error.
[11/22/2020 19:32:48] End script phase.
[11/22/2020 19:32:48] Error: An unexpected error happened during phase CoreEngineExecution of job.
[11/22/2020 19:32:48] Job finished with result FailedExecution
[11/22/2020 19:32:48] Job Status:
{
"status": "failedInstructions",
"reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5/8a15fb482c6145e7a7d18b6abc028a57/report.txt?AWSAccessKeyId=ASIATGVJZKM3J6Q7ZEO4&Expires=1606078058&x-amz-security-token=IQoJb3JpZ2luX2VjEDMaCXVzLWVhc3QtMSJHMEUCIQD7G6ktrZVLWT%2BfknqGUDij7QOIGjW2f3glPnQQd6hcmwIgCZ%2BCOl5XRZe%2FqbGdPcc0jwfdaYrOMU4dwlyYAs43bPQq3gEIrP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwyMjA0NzMxNTIzMTAiDLi1gMNIs1rnR%2FoAVCqyAeISr3d35nEWlPTEcpvRU%2B8X6TqqvKkPYZI3e1XbuIAElo5dvzA%2Bmag4tKvhi7ltLEFoZ2ppO86ohxb3vKOUoaBypd1dzDAxelvLhrQfHDn%2B6NyYwdhlwuHXsOq8LN693ANnDkqFrPStHws3bSpGvIosoOlGszDZgJrFDt65NOREmrE%2FYuy%2F1js9fghaUfwTdOSVa%2BsHk3LEpPscKiUyud3%2B5GkUD5PdiuBOAyhiJQYBxjow1%2Bbq%2FQU64AERb6Sn1QEJiA2%2B3LQk3a83yCYOvgg6rnRMA4IW%2FB6LqBz858vpbSgXlBIq6kmwayfJhOdqMqNBE4FYMwo0ufvEU6WCoRkQnzeUjtbjLAROaAHKWhcxnh5dk1cHv6bAucPo8YfF8JbUAZ3BTDQFRYjacULbIcVewbGJM1ZtCYUZtAFcNrRKdEjK13%2FFP5OmSSH7YZ4YY3UxCTz1c7pt4WTjZ8yCVMzN%2FmMp0ydx%2FvObH4RltaUf%2BT0CHWcFTAZsNMEqzEgugDFtl4%2BPUBDJ1pb66Xb2CLuozNdWGBXJyYdKbw%3D%3D&Signature=YNJqk0GGj0Us3YuH0WwCG0GdrNQ%3D",
"stats": {
"timeQueued": "2020-11-22T19:32:37.7876783Z",
"timeDownloadStarted": "2020-11-22T19:32:37.9975809Z",
"timeInstructionsStarted": "2020-11-22T19:32:44.1357867Z",
"timeInstructionsEnded": "2020-11-22T19:32:48.3255927Z",
"bytesDownloaded": 87952930
},
"id": "8a15fb482c6145e7a7d18b6abc028a57"
}
...ANSWER
Answered 2020-Nov-23 at 07:34Try to check usage of method
GetPreciseStringFromValue
. Because the first argument must bedouble
, not empty string.Try to check usage of Form1. Because Inventor.Core doesn't have UI.
How do you access to Inventor.Application object? Use
ThisApplication
only. This part of log looks strange.
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
[11/22/2020 19:32:47] at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yh
Releases
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page