This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pandas as pd | |
import openpyxl | |
from openpyxl.styles import Font, Border, Side, Alignment, PatternFill | |
from openpyxl.drawing.image import Image | |
from datetime import datetime | |
import os | |
import json | |
class ProcoreAPIClient: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
# API configuration | |
BASE_URL = "https://api.textura.oraclecloud.com" # Replace with your actual Textura API base URL | |
ENDPOINT = "/invoices/import" # Endpoint for invoice import (adjust if different) | |
API_KEY = "your_api_key_here" # Replace with your actual API key or token | |
# Sample invoice data (modify according to your requirements and API specs) | |
invoice_data = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
# API Servers | |
# Production Server: https://services.texturacorp.com/ebis/api/v1/ | |
# Test Server: https://usint1.textura.oraclecloud.com/ebis/api/v1/ | |
# Compliance Example | |
# https://services.texturacorp.com/ebis/api/v1/import/compliance-requirements | |
# Test: https://usint1.textura.oraclecloud.com/ebis/api/v1/import/compliance-requirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>House Building Project Gantt Chart</title> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
.gantt-container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Procore API Integration</title> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
.card { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Procore API Connector | |
* | |
* A simple PHP class to authenticate and interact with the Procore API | |
*/ | |
class ProcoreConnector { | |
private $clientId; | |
private $clientSecret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="Building"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="Name" type="xs:string"/> | |
<xs:element name="Address" type="xs:string"/> | |
<xs:element name="FloorCount" type="xs:positiveInteger"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install pyrevit | |
import clr | |
clr.AddReference('RevitAPI') | |
import Autodeskfrom Autodesk.Revit.DB | |
import *import pyrevitfrom pyrevit | |
import revit | |
revit.doc = __revit__.ActiveUIDocument.Document |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dotbimpy as bim | |
# Create a new BIM modelmodel = bim.BIMModel() | |
# Add elements to the modelwall = bim.Wall() | |
wall.name = "Wall 1"wall.length = 5000wall.height = 3000# Add the wall to the modelmodel.add_element(wall) | |
# Save the model as a .bim filemodel.save("output.bim") | |
print("Model file generated successfully!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import necessary libraries | |
# pip install dynamo-python | |
import dynamo | |
session = dynamo.Session() | |
# Define the number of employees and desired area per employee for each space | |
num_employees = { | |
'desks': 50, | |
'kitchen': 20, |
NewerOlder