GithubHelp home page GithubHelp logo

justin-walzengineering / placeholdercablereassign Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrlucmorin/placeholdercablereassign

0.0 0.0 0.0 116 KB

Automatically reassign cable data after selecting a new value set from a PlaceHolder in Eplan P8

C# 100.00%

placeholdercablereassign's Introduction

PlaceHolderCableReassign

Automatically reassign cable data after selecting a new value set from a PlaceHolder in Eplan P8

See my blog post at http://www.stlm.ca/eplan/ressigning-cables-when-using-placeholders-in-eplan-p8/ for a description of the problem, or my video at http://www.youtube.com/watch?v=J8Nf2elNzcY&feature=plcp for a demonstration.

This EPlan P8 API Add-In implements an Event Handler to respond to the "onActionEnd.String.XMPlaceHolderAssignRecordAction" event which is fired after the user Assigns a value set to a PlaceHolder object.

The EventHandler is registered with the Eplan event subsystem within the OnInit method of the AddIn class. Once registered, a .NET event handler is registered as the "callback" method to be executed when the event is fired.

The bulk of the code resides in the PlaceHolderAssign_EplanEvent method of the EventHandler class.

In this method, we obtain a reference to the currently selected PlaceHolder object, then we iterate over the cables that are assigned to it, and call the CableService.DoReassignWires method on each one of them.

This will have the same effect as manually using the “Project Data > Cables > Assign Conductors > Reassign All” menu in Eplan.

placeholdercablereassign's People

Contributors

mrlucmorin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.