Skip to content

Instantly share code, notes, and snippets.

View chuongmep's full-sized avatar
👋
Loading...

Chuong Ho chuongmep

👋
Loading...
View GitHub Profile
{
"version": "1.0",
"resourceUrn": "...?version=2",
"hook": {
"hookId": "da040095-393f-40aa-866c-a6c01015e730",
"tenant": "...",
"callbackUrl": "https://webhook.site/25ad18c1-2f09-4148-bfd1-2c9cd2618a9b",
"createdBy": "PUOkTUuLkIGtlYeFNbNG9W0PRdmUjGKk",
"event": "dm.version.modified",
"createdDate": "2023-11-27T07:42:51.833+00:00",
public async Task<Status> ExecuteWorkItem(string token, string projectId, string versionId,string modelName, string callBackUrl)
{
Console.WriteLine("ActivityId: " + _configuration.ActivityFullName);
dynamic downloadUrl = await BuildDownloadURL(token, projectId, versionId).ConfigureAwait(false);
Console.WriteLine("Download URL: " + downloadUrl.Url);
XrefTreeArgument treeArgument = await BuildUploadURL(token).ConfigureAwait(false);
Console.WriteLine("TreeArgument: " + treeArgument.Url);
WorkItem workItemSpec = new WorkItem()
{
ActivityId = _configuration.ActivityFullName,
[12/06/2023 08:44:32] Job information:
{
"CommandLine": [
"$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[inputFile].path)\" /al \"$(appbundles[ExtractRoomApp].path)\""
],
"Settings": {
"script": {},
"dasOpenNetwork": {
"value": "true",
"isEnvironmentVariable": true
[12/06/2023 08:43:09] Job information:
{
"CommandLine": [
"$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[inputFile].path)\" /al \"$(appbundles[ExtractRoomApp].path)\""
],
"Settings": {
"script": {},
"dasOpenNetwork": {
"value": "true",
"isEnvironmentVariable": true
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import gzip
import json
import re
class PropDbReader:
def __init__(self, ids_path, offsets_path, avs_path, attrs_path, vals_path):
with gzip.open(ids_path, 'rb') as ids_file, gzip.open(offsets_path, 'rb') as offsets_file, \
gzip.open(avs_path, 'rb') as avs_file, gzip.open(attrs_path, 'rb') as attrs_file, \
gzip.open(vals_path, 'rb') as vals_file:
self.ids = json.load(ids_file)
#include <stdio.h>
void drawLine(int x1, int y1, int x2, int y2) {
int i, j;
for (i = 0; i < 50; i++) {
for (j = 0; j < 80; j++) {
if ((j == x1 && i == y1) || (j == x2 && i == y2)) {
printf("o");
} else {
printf(" ");
void Main()
{
string[] inputs = {
"3764.301 mm",
"0.0 m³/h",
"0.0 m/s",
"0.00%",
"100",
"6498675.488 mm²",
"0.0 Pa",
We can't make this file beautiful and searchable because it's too large.
username,time,entry,jrnName,details,commandID,commandDesc,warningMessage,isWarning,isCommand,fileName,journalPath
none,10-May-2023 08:25:04.867,"Jrn.Directive _""CategoryDisciplineFilter"" , 31",Directive,none,none,none,"('none',)",False,False,none,./journalFiles/journal.0250.txt.copy.txt
none,10-May-2023 08:25:04.867,"Jrn.Directive _""DisciplineOption"" , 32253",Directive,none,none,none,"('none',)",False,False,none,./journalFiles/journal.0250.txt.copy.txt
none,10-May-2023 08:25:04.867,"Jrn.Directive _""TabDisplayOptions"" , ""StayOnModifyInProject"" , 0",Directive,none,none,none,"('none',)",False,False,none,./journalFiles/journal.0250.txt.copy.txt
none,10-May-2023 08:25:04.867,"Jrn.Directive _""TabDisplayOptions"" , ""StayOnModifyInFamily"" , 1",Directive,none,none,none,"('none',)",False,False,none,./journalFiles/journal.0250.txt.copy.txt
none,10-May-2023 08:25:04.867,"Jrn.Directive _""TabDisplayOptions"" , ""ActiveCtOnSelection"" , 1",Directive,none,none,none,"('none',)",False,False,none,./journalFiles
We can't make this file beautiful and searchable because it's too large.
| GroupName | ParameterDisplayName | ParameterName | DataType | DataTypeString | ParameterValue |
|------------|----------------------|-----------------------------------|----------|----------------|----------------|
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 1676423 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 1676423 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 4986445 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 4986445 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 4986562 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue | 20 | String | 4986562 |
| Element ID | Value | LcRevitId:LcOaNat64AttributeValue